forked from onivim/oni2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/Menu Input events (onivim#183)
Use Window listener rather than Reglfw listener to handle the `keypress` input, this allows the input component to get `backspace`, `arrow` key events etc. This adds the ability to use `C-N` and `C-P` whilst the input is in focus as well as using `ESC`.
- Loading branch information
Showing
7 changed files
with
147 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"bindings": [ | ||
{ "key": "<C-P>", "command": "quickOpen.open", "when": ["editorTextFocus"] }, | ||
{ "key": "<S-C-P>", "command": "commandPalette.open", "when": ["editorTextFocus"] }, | ||
{ "key": "<ESC>", "command": "menu.close", "when": ["menuFocus"] }, | ||
{ "key": "<C-N>", "command": "menu.next", "when": ["menuFocus"] }, | ||
{ "key": "<C-P>", "command": "menu.previous", "when": ["menuFocus"] }, | ||
{ "key": "<CR>", "command": "menu.select", "when": ["menuFocus"] } | ||
{ "key": "<C-P>", "command": "quickOpen.open", "when": [["editorTextFocus"]] }, | ||
{ "key": "<S-C-P>", "command": "commandPalette.open", "when": [["editorTextFocus"]] }, | ||
{ "key": "<ESC>", "command": "menu.close", "when": [["menuFocus"]] }, | ||
{ "key": "<C-N>", "command": "menu.next", "when": [["menuFocus"], ["textInputFocus"]] }, | ||
{ "key": "<C-P>", "command": "menu.previous", "when": [["menuFocus"], ["textInputFocus"]] }, | ||
{ "key": "<CR>", "command": "menu.select", "when": [["menuFocus"], ["textInputFocus"]] } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.