Skip to content

Commit a01c529

Browse files
author
Kelven Yang
committed
bug 12696: add keysym mapping for capslock key
1 parent 9f49a86 commit a01c529

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎console-proxy/js/ajaxviewer.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function JsX11KeyboardMapper() {
102102
KeyboardMapper.apply(this, arguments);
103103

104104
this.jsX11KeysymMap = [];
105+
this.jsX11KeysymMap[AjaxViewer.JS_KEY_CAPSLOCK] = 0xffe5;
105106
this.jsX11KeysymMap[AjaxViewer.JS_KEY_BACKSPACE] = 0xff08;
106107
this.jsX11KeysymMap[AjaxViewer.JS_KEY_TAB] = 0xff09;
107108
this.jsX11KeysymMap[AjaxViewer.JS_KEY_ENTER] = 0xff0d;
@@ -237,8 +238,8 @@ function AjaxViewer(panelId, imageUrl, updateUrl, tileMap, width, height, tileWi
237238
// trouble-shooting
238239
g_logger = new Logger();
239240

240-
// g_logger.enable(true);
241-
// g_logger.open();
241+
//g_logger.enable(true);
242+
//g_logger.open();
242243

243244
var ajaxViewer = this;
244245
this.imageLoaded = false;

0 commit comments

Comments
 (0)