Added keybindings for commandbar (#3854)

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
Fayaz Ahmed
2022-01-27 17:57:33 +05:30
committed by GitHub
parent e7e46590a4
commit 13eaff156a
2 changed files with 11 additions and 0 deletions

View File

@@ -89,3 +89,7 @@ export const hasPressedArrowUpKey = e => {
export const hasPressedArrowDownKey = e => {
return e.keyCode === 40;
};
export const hasPressedCommandPlusKKey = e => {
return e.metaKey && e.keyCode === 75;
};