Skip to content

Instantly share code, notes, and snippets.

@mooz
Created August 3, 2009 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mooz/160278 to your computer and use it in GitHub Desktop.
Save mooz/160278 to your computer and use it in GitHub Desktop.
// ==================== set global keys ==================== //
key.setGlobalKey("C-M-r",
function () { userscript.reload(); },
"設定ファイルを再読み込み");
// -------------------- help command -------------------- //
key.setGlobalKey([key.helpKey, "b"], function () {
key.listKeyBindings();
}, "キーバインド一覧を表示");
key.setGlobalKey([key.helpKey, "F"], function (aEvent) {
openHelpLink('firefox-help');
}, "Firefox のヘルプを表示");
// -------------------- misc -------------------- //
key.setGlobalKey("C-t", function () {
document.getElementById("cmd_newNavigatorTab").doCommand();
}, "タブを開く");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment