mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-58515-master' of https://github.com/lucisgit/moodle
This commit is contained in:
commit
9517ea662d
5 changed files with 33 additions and 9 deletions
|
@ -314,6 +314,12 @@ ul.assignfeedback_editpdf_menu {
|
||||||
min-height: 1.2em;
|
min-height: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.assignfeedback_editpdf_widget .commentdrawable textarea:focus {
|
||||||
|
outline: thin dotted #333;
|
||||||
|
outline: 5px auto -webkit-focus-ring-color;
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
.assignfeedback_editpdf_widget .commentdrawable {
|
.assignfeedback_editpdf_widget .commentdrawable {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
|
@ -2562,6 +2562,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
container.setAttribute('tabindex', '-1');
|
container.setAttribute('tabindex', '-1');
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
node.setAttribute('tabindex', '-1');
|
node.setAttribute('tabindex', '-1');
|
||||||
|
menu.setAttribute('tabindex', '0');
|
||||||
|
|
||||||
if (!this.editor.get('readonly')) {
|
if (!this.editor.get('readonly')) {
|
||||||
container.append(menu);
|
container.append(menu);
|
||||||
|
@ -2681,6 +2682,8 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
if (node.collapse.delay) {
|
if (node.collapse.delay) {
|
||||||
node.collapse.delay.cancel();
|
node.collapse.delay.cancel();
|
||||||
}
|
}
|
||||||
|
// Give comment a tabindex to prevent focus outline being suppressed.
|
||||||
|
node.setAttribute('tabindex', '0');
|
||||||
// Expand comment and pass focus to it.
|
// Expand comment and pass focus to it.
|
||||||
node.expand();
|
node.expand();
|
||||||
node.focus();
|
node.focus();
|
||||||
|
@ -2697,7 +2700,10 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// Always restore label tabindex when leaving.
|
// Always restore the default tabindex states when moving away.
|
||||||
|
node.on('blur', function() {
|
||||||
|
node.setAttribute('tabindex', '-1');
|
||||||
|
}, this);
|
||||||
label.on('blur', function() {
|
label.on('blur', function() {
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2562,6 +2562,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
container.setAttribute('tabindex', '-1');
|
container.setAttribute('tabindex', '-1');
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
node.setAttribute('tabindex', '-1');
|
node.setAttribute('tabindex', '-1');
|
||||||
|
menu.setAttribute('tabindex', '0');
|
||||||
|
|
||||||
if (!this.editor.get('readonly')) {
|
if (!this.editor.get('readonly')) {
|
||||||
container.append(menu);
|
container.append(menu);
|
||||||
|
@ -2681,6 +2682,8 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
if (node.collapse.delay) {
|
if (node.collapse.delay) {
|
||||||
node.collapse.delay.cancel();
|
node.collapse.delay.cancel();
|
||||||
}
|
}
|
||||||
|
// Give comment a tabindex to prevent focus outline being suppressed.
|
||||||
|
node.setAttribute('tabindex', '0');
|
||||||
// Expand comment and pass focus to it.
|
// Expand comment and pass focus to it.
|
||||||
node.expand();
|
node.expand();
|
||||||
node.focus();
|
node.focus();
|
||||||
|
@ -2697,7 +2700,10 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// Always restore label tabindex when leaving.
|
// Always restore the default tabindex states when moving away.
|
||||||
|
node.on('blur', function() {
|
||||||
|
node.setAttribute('tabindex', '-1');
|
||||||
|
}, this);
|
||||||
label.on('blur', function() {
|
label.on('blur', function() {
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
|
@ -185,6 +185,7 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
container.setAttribute('tabindex', '-1');
|
container.setAttribute('tabindex', '-1');
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
node.setAttribute('tabindex', '-1');
|
node.setAttribute('tabindex', '-1');
|
||||||
|
menu.setAttribute('tabindex', '0');
|
||||||
|
|
||||||
if (!this.editor.get('readonly')) {
|
if (!this.editor.get('readonly')) {
|
||||||
container.append(menu);
|
container.append(menu);
|
||||||
|
@ -304,6 +305,8 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
if (node.collapse.delay) {
|
if (node.collapse.delay) {
|
||||||
node.collapse.delay.cancel();
|
node.collapse.delay.cancel();
|
||||||
}
|
}
|
||||||
|
// Give comment a tabindex to prevent focus outline being suppressed.
|
||||||
|
node.setAttribute('tabindex', '0');
|
||||||
// Expand comment and pass focus to it.
|
// Expand comment and pass focus to it.
|
||||||
node.expand();
|
node.expand();
|
||||||
node.focus();
|
node.focus();
|
||||||
|
@ -320,7 +323,10 @@ var COMMENT = function(editor, gradeid, pageno, x, y, width, colour, rawtext) {
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// Always restore label tabindex when leaving.
|
// Always restore the default tabindex states when moving away.
|
||||||
|
node.on('blur', function() {
|
||||||
|
node.setAttribute('tabindex', '-1');
|
||||||
|
}, this);
|
||||||
label.on('blur', function() {
|
label.on('blur', function() {
|
||||||
label.setAttribute('tabindex', '0');
|
label.setAttribute('tabindex', '0');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue