mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-30 00:49:38 +00:00
input.js: remove redundant switch case statments.
Issue #21 - non-US key handling.
This commit is contained in:
@@ -57,10 +57,6 @@ function getKeysymSpecial(evt) {
|
||||
|
||||
if (evt.type === 'keydown') {
|
||||
switch ( evt.keyCode ) {
|
||||
case 8 : keysym = 0xFF08; break; // BACKSPACE
|
||||
case 13 : keysym = 0xFF0D; break; // ENTER
|
||||
case 9 : keysym = 0xFF09; break; // TAB
|
||||
|
||||
case 27 : keysym = 0xFF1B; break; // ESCAPE
|
||||
case 46 : keysym = 0xFFFF; break; // DELETE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user