diff --git a/lib/util/keyutil.js b/lib/util/keyutil.js index 4091a328..943b1f4c 100644 --- a/lib/util/keyutil.js +++ b/lib/util/keyutil.js @@ -580,6 +580,7 @@ keyutil.unwire = (function() { map[wire.KeyCode.HOME] = keyutil.namedKey('home') map[wire.KeyCode.BACK] = keyutil.namedKey('back') map[wire.KeyCode.BACKSPACE] = keyutil.namedKey('del') + map[wire.KeyCode.TAB] = keyutil.namedKey('tab') map[wire.KeyCode.ENTER] = keyutil.namedKey('enter') map[wire.KeyCode.CAPS_LOCK] = keyutil.namedKey('caps_lock') map[wire.KeyCode.ESC] = keyutil.namedKey('escape') diff --git a/lib/wire/wire.proto b/lib/wire/wire.proto index cfdf6016..8842677e 100644 --- a/lib/wire/wire.proto +++ b/lib/wire/wire.proto @@ -269,6 +269,7 @@ enum KeyCode { HOME = 3; BACK = 4; BACKSPACE = 8; + TAB = 9; ENTER = 13; CAPS_LOCK = 20; ESC = 27; diff --git a/res/app/components/stf/control/control-service.js b/res/app/components/stf/control/control-service.js index a44cc3f4..2c87c599 100644 --- a/res/app/components/stf/control/control-service.js +++ b/res/app/components/stf/control/control-service.js @@ -10,6 +10,7 @@ module.exports = function ControlServiceFactory( function ControlService(target, channel) { var keyCodes = { 8: 8 // backspace + , 9: 9 // tab , 13: 13 // enter , 20: 20 // caps lock , 27: 27 // esc