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>
This commit is contained in:
Sanjay Tripathi 2013-08-28 14:22:21 +05:30 committed by Vijayendra Bhamidipati
parent f21c8fa998
commit f2874d0f22
1 changed files with 6 additions and 2 deletions

View File

@ -140,9 +140,13 @@ KeyboardMapper.prototype = {
this.jsX11KeysymMap[AjaxViewer.JS_KEY_SELECT_KEY] = AjaxViewer.X11_KEY_SELECT_KEY;
this.jsX11KeysymMap[AjaxViewer.JS_KEY_DECIMAL_POINT] = AjaxViewer.X11_KEY_DECIMAL_POINT;
this.jsKeyPressX11KeysymMap[45] = [{type: AjaxViewer.KEY_DOWN, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: true },
{type: AjaxViewer.KEY_DOWN, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: false }];
{type: AjaxViewer.KEY_UP, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: true },
{type: AjaxViewer.KEY_DOWN, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: false },
{type: AjaxViewer.KEY_UP, code: AjaxViewer.X11_KEY_SUBSTRACT, modifiers: 0, shift: false }];
this.jsKeyPressX11KeysymMap[47] = [{type: AjaxViewer.KEY_DOWN, code: 0x2f, modifiers: 0, shift: true },
{type: AjaxViewer.KEY_DOWN, code: 0x2f, modifiers: 0, shift: false }];
{type: AjaxViewer.KEY_UP, code: 0x2f, modifiers: 0, shift: true },
{type: AjaxViewer.KEY_DOWN, code: 0x2f, modifiers: 0, shift: false },
{type: AjaxViewer.KEY_UP, code: 0x2f, modifiers: 0, shift: false }];
}
},
RawkeyboardInputHandler : function(eventType, code, modifiers, guestos, browser, browserVersion) {