Change arrow key behavior in input fields.

This commit is contained in:
Ian Gulliver
2019-07-16 04:38:45 +00:00
parent 5fa863d28c
commit 9eff55ba6a

View File

@@ -72,13 +72,11 @@ class EditorInputBase extends EditorEntryBase {
case 'Escape':
case '`':
this.stopEdit();
e.preventDefault();
e.stopPropagation();
this.stopEdit();
break;
case 'ArrowUp':
case 'ArrowDown':
case 'PageUp':
case 'PageDown':
this.stopEdit();
@@ -94,6 +92,7 @@ class EditorInputBase extends EditorEntryBase {
super.onKeyDown(e);
switch (e.key) {
case 'ArrowRight':
case 'Enter':
this.startEdit();
e.stopPropagation();