[Editor] Make editors movable in using the keyboard (bug 1845088)

Selected editors can be moved in using the arrows:
 - up/down/left/right will move the editors of 1 in page unit;
 - ctrl (or meta)+up/down/left/right will move them of 10 in page unit.
This commit is contained in:
Calixte Denizet 2023-07-26 12:57:59 +02:00
parent 48cc67f17e
commit bb6936c931
8 changed files with 311 additions and 50 deletions

View file

@ -77,14 +77,13 @@ const AnnotationEditorType = {
};
const AnnotationEditorParamsType = {
FREETEXT_SIZE: 1,
FREETEXT_COLOR: 2,
FREETEXT_OPACITY: 3,
INK_COLOR: 11,
INK_THICKNESS: 12,
INK_OPACITY: 13,
INK_DIMS: 14,
STAMP_DIMS: 21,
RESIZE: 1,
FREETEXT_SIZE: 11,
FREETEXT_COLOR: 12,
FREETEXT_OPACITY: 13,
INK_COLOR: 21,
INK_THICKNESS: 22,
INK_OPACITY: 23,
};
// Permission flags from Table 22, Section 7.6.3.2 of the PDF specification.