Skip to content

Commit f2874d0

Browse files
sanjaytripathiVijayendra Bhamidipati
authored andcommitted
CLOUDSTACK-4434: EN: Ubuntu: Direct input "- _ ", "? /", "keyboard /" ,"keyboard -" keys are not working well for the US keyboard.
Reviewed-by: Fang Wang <fang.wang@citrix.com> Signed-off-by: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
1 parent f21c8fa commit f2874d0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

services/console-proxy/server/js/ajaxviewer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,13 @@ KeyboardMapper.prototype = {
140140
this.jsX11KeysymMap[AjaxViewer.JS_KEY_SELECT_KEY] = AjaxViewer.X11_KEY_SELECT_KEY;
141141
this.jsX11KeysymMap[AjaxViewer.JS_KEY_DECIMAL_POINT] = AjaxViewer.X11_KEY_DECIMAL_POINT;
142142
this.jsKeyPressX11KeysymMap[45] = [{type: AjaxViewer.KEY_DOWN, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: true },
143-
{type: AjaxViewer.KEY_DOWN, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: false }];
143+
{type: AjaxViewer.KEY_UP, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: true },
144+
{type: AjaxViewer.KEY_DOWN, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: false },
145+
{type: AjaxViewer.KEY_UP, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: false }];
144146
this.jsKeyPressX11KeysymMap[47] = [{type: AjaxViewer.KEY_DOWN, code: 0x2f, modifiers: 0, shift: true },
145-
{type: AjaxViewer.KEY_DOWN, code: 0x2f, modifiers: 0, shift: false }];
147+
{type: AjaxViewer.KEY_UP, code: 0x2f, modifiers: 0, shift: true },
148+
{type: AjaxViewer.KEY_DOWN, code: 0x2f, modifiers: 0, shift: false },
149+
{type: AjaxViewer.KEY_UP, code: 0x2f, modifiers: 0, shift: false }];
146150
}
147151
},
148152
RawkeyboardInputHandler : function(eventType, code, modifiers, guestos, browser, browserVersion) {

0 commit comments

Comments
 (0)