1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 20:57:59 +01:00

explicitly set JS version to 1.7

This commit is contained in:
Martin Stubenschrott
2007-05-27 15:48:05 +00:00
parent ff488d5399
commit 43676b4f81
2 changed files with 13 additions and 11 deletions

View File

@@ -742,7 +742,9 @@ function Vimperator()
// After pressing Escape, put focus on a non-input field of the browser document
this.focusContent = function()
{
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher);
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].
getService(Components.interfaces.nsIWindowWatcher);
if (window == ww.activeWindow && document.commandDispatcher.focusedElement)
document.commandDispatcher.focusedElement.blur();