Merge pull request #1271 from anshul1886/CLOUDSTACK-9164

CLOUDSTACK-9164: Prevent firefox's quick search from opening in VM consolehttps://issues.apache.org/jira/browse/CLOUDSTACK-9164

To test:
In Firefox open any VM conosle, and try typing "/".
It should be typed in VM console and quick search of firefox should not open.

* pr/1271:
  CLOUDSTACK-9164: Prevent firefox's quick search from opening in VM console

Signed-off-by: Will Stevens <williamstevens@gmail.com>
This commit is contained in:
Will Stevens 2016-04-25 15:53:01 -04:00
commit 4ab7fb78ad
1 changed files with 2 additions and 0 deletions

View File

@ -649,6 +649,7 @@ AjaxViewer.prototype = {
this.sendingEventInProgress = false;
ajaxViewer.installMouseHook();
ajaxViewer.installKeyboardHook();
ajaxViewer.panel.parent().focus();
$(window).bind("resize", function() {
ajaxViewer.onWindowResize();
@ -1259,6 +1260,7 @@ AjaxViewer.prototype = {
case 38 : // UP
case 39 : // RIGHT
case 40 : // DOWN
case 47 : // FORWARD SLASH // Added to stop Firefox's quick search from opening
return false;
}