A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/antonmedv/codejar/commit/59da1f959f95ae2315ca26f98fe7da05b8c04d1b below:

use KeyboardEvent code instead of key for multi language support (#58) · antonmedv/codejar@59da1f9 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -436,11 +436,11 @@ export function CodeJar(editor: HTMLElement, highlight: (e: HTMLElement, pos?: P

436 436

}

437 437 438 438

function isUndo(event: KeyboardEvent) {

439 -

return isCtrl(event) && !event.shiftKey && event.key === 'z'

439 +

return isCtrl(event) && !event.shiftKey && event.code === 'KeyZ'

440 440

}

441 441 442 442

function isRedo(event: KeyboardEvent) {

443 -

return isCtrl(event) && event.shiftKey && event.key === 'z'

443 +

return isCtrl(event) && event.shiftKey && event.code === 'KeyZ'

444 444

}

445 445 446 446

function insert(text: string) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4