mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-07 18:14:38 -04:00
Updates preview styles.
This commit is contained in:
parent
61ae46386e
commit
a8a6871ebd
6 changed files with 42 additions and 28 deletions
|
@ -200,9 +200,9 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
|
|||
|
||||
if (key === 27) { // esc
|
||||
onExit();
|
||||
} else if (key === 37) { // left
|
||||
} else if (key === 8 || key === 37 || key === 40) { // backspace, left, down
|
||||
onPrevious();
|
||||
} else if (key === 39) { // right
|
||||
} else if (key === 13 || key === 32 || key === 38 || key === 39) { // enter, space, up, right
|
||||
onNext();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue