AutoHotkeyとFirefoxがない場合-別のプログラムの操作に関係しているためunfocusであり、Linuxでは機能せず、Flashタブを制御できないため、 Restore Window FocusAfterFlashアドオンがありません。
誰かがこのgBrowser.selectedTab.unfocus();
メソッドを実装してFirefoxv3.6のキーストロークにバインドすることに成功しましたか?
私も試しました(上記のアドオンに基づく)
if (document.getElementsByTagName("EMBED").length == 0) {
return;
}
if (document.activeElement.tagName == "EMBED") {
document.activeElement.blur();
}
return;
しかし、それは機能しません。
また、キーストロークにバインドされたこのJSコードを試してみました。
var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
var process = Components.classes["@mozilla.org/process/util;1"].
createInstance(Components.interfaces.nsIProcess);
var args = ["-unfocus"];
file.initWithPath("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
process.init(file);
process.run(false, args, args.length);
まだ行きません。