CLOUDSTACK-9164: Prevent firefox's quick search from opening in VM console

This commit is contained in:
Anshul Gangwar 2015-12-22 11:59:09 +05:30 committed by Anshul Gangwar
parent d518b619dd
commit 7db5f1833e
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;
}