mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Add role=spinbutton to resizers when they're used with the keyboard
This commit is contained in:
parent
40d6b0e1bf
commit
335cea22b3
1 changed files with 1 additions and 0 deletions
|
@ -1422,6 +1422,7 @@ class AnnotationEditor {
|
|||
const boundResizerBlur = this.#resizerBlur.bind(this);
|
||||
for (const div of this.#allResizerDivs) {
|
||||
const name = div.getAttribute("data-resizer-name");
|
||||
div.setAttribute("role", "spinbutton");
|
||||
div.addEventListener("keydown", boundResizerKeydown);
|
||||
div.addEventListener("blur", boundResizerBlur);
|
||||
div.addEventListener("focus", this.#resizerFocus.bind(this, name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue