mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
disable key toLowerCase
This commit is contained in:
parent
171235bdb9
commit
e13193f39c
@ -13,9 +13,9 @@ export default class ShortcutsCore extends Core {
|
||||
|
||||
handleEvent = (event) => {
|
||||
// FIXME: event.key sometimes is not defined
|
||||
const key = event.key.toLowerCase()
|
||||
//event.key = event.key.toLowerCase()
|
||||
|
||||
const shortcut = this.shortcuts[key]
|
||||
const shortcut = this.shortcuts[event.key]
|
||||
|
||||
if (shortcut) {
|
||||
if (typeof shortcut.ctrl === "boolean" && event.ctrlKey !== shortcut.ctrl) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user