mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
prevent default on up key...
This commit is contained in:
parent
86e070238c
commit
a0a611dcf6
1 changed files with 1 additions and 1 deletions
|
|
@ -554,7 +554,7 @@
|
|||
const isUp = event.which === 38;
|
||||
const isCtrlN = event.which === 78 && event.ctrlKey;
|
||||
const isCtrlP = event.which === 80 && event.ctrlKey;
|
||||
if (isDown || isDown || isCtrlN || isCtrlP) event.preventDefault();
|
||||
if (isDown || isUp || isCtrlN || isCtrlP) event.preventDefault();
|
||||
if (isDown || isCtrlN) this._focusNext();
|
||||
if (isUp || isCtrlP) this._focusPrevious();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue