Skip to content

Commit 0fc996c

Browse files
sanjaytripathichaturvedia
authored andcommitted
CLOUDSTACK-4434: EN: Ubuntu: Direct input "- _ ", "? /", "keyboard /" ,"keyboard -" keys are not working well for the US keyboard.
Reviewed-by: Fang Wang <[email protected]> Signed-off-by: Vijayendra Bhamidipati <[email protected]> (cherry picked from commit f2874d0) Signed-off-by: animesh <[email protected]>
1 parent 3c58f9b commit 0fc996c

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)