Skip to content

Commit d74b64c

Browse files
anuragawyadvr
authored andcommitted
console-proxy: ignore META key mask if control was pressed (#3308)
On VMware Zone, hitting CTRL over Console Proxy will send a mask of Meta key as well. This makes Ctrl+A, Ctrl+E and many functionalities to not work in console. Read #3229 for details For fixing ignore Meta key flag passed by SDK if Control was pressed. The Jquery implementation sets the meta key to control key to support IE. Fixes #3229
1 parent 7247c5e commit d74b64c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

systemvm/agent/js/ajaxviewer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,9 @@ AjaxViewer.prototype = {
14311431
if(e.shiftLeft)
14321432
modifiers |= AjaxViewer.LEFT_SHIFT_MASK;
14331433

1434-
if(e.metaKey)
1434+
// Don't pass meta key modifier filter if control key is pressed.
1435+
// For more details see https://github.com/apache/cloudstack/issues/3229
1436+
if(e.metaKey && !e.ctrlKey)
14351437
modifiers |= AjaxViewer.META_KEY_MASK;
14361438

14371439
return modifiers;

0 commit comments

Comments
 (0)