You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2019/06/06 07:54:21 UTC
[cloudstack] branch master updated: console-proxy: ignore META key
mask if control was pressed (#3308)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/master by this push:
new d74b64c console-proxy: ignore META key mask if control was pressed (#3308)
d74b64c is described below
commit d74b64c55b83d025be92a7b092660dbd3539538d
Author: Anurag Awasthi <43...@users.noreply.github.com>
AuthorDate: Thu Jun 6 13:24:12 2019 +0530
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 https://github.com/apache/cloudstack/issues/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
---
systemvm/agent/js/ajaxviewer.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/systemvm/agent/js/ajaxviewer.js b/systemvm/agent/js/ajaxviewer.js
index f160abc..1a44b3e 100644
--- a/systemvm/agent/js/ajaxviewer.js
+++ b/systemvm/agent/js/ajaxviewer.js
@@ -1431,7 +1431,9 @@ AjaxViewer.prototype = {
if(e.shiftLeft)
modifiers |= AjaxViewer.LEFT_SHIFT_MASK;
- if(e.metaKey)
+ // Don't pass meta key modifier filter if control key is pressed.
+ // For more details see https://github.com/apache/cloudstack/issues/3229
+ if(e.metaKey && !e.ctrlKey)
modifiers |= AjaxViewer.META_KEY_MASK;
return modifiers;