|
@@ -44,6 +44,7 @@ util.setPrefs( |
|
|
"browser.tabs.closeWindowWithLastTab":false, |
|
|
"browser.tabs.closeWindowWithLastTab":false, |
|
|
"network.dns.disableIPv6":true, |
|
|
"network.dns.disableIPv6":true, |
|
|
"browser.urlbar.trimURLs":false, |
|
|
"browser.urlbar.trimURLs":false, |
|
|
|
|
|
"browser.fullscreen.autohide":false, |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
@@ -757,151 +758,3 @@ key.setViewKey([['<prior>'], ['<next>']], function (ev, arg) { |
|
|
return; |
|
|
return; |
|
|
}, 'ignore'); |
|
|
}, 'ignore'); |
|
|
|
|
|
|
|
|
key.setEditKey(['C-x', 'h'], function (ev) { |
|
|
|
|
|
command.selectAll(ev); |
|
|
|
|
|
}, '全て選択', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey([['C-x', 'u'], ['C-_']], function (ev) { |
|
|
|
|
|
display.echoStatusBar("Undo!", 2000); |
|
|
|
|
|
goDoCommand("cmd_undo"); |
|
|
|
|
|
}, 'アンドゥ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey(['C-x', 'r', 'd'], function (ev, arg) { |
|
|
|
|
|
command.replaceRectangle(ev.originalTarget, "", false, !arg); |
|
|
|
|
|
}, '矩形削除', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey(['C-x', 'r', 't'], function (ev) { |
|
|
|
|
|
prompt.read("String rectangle: ", function (aStr, aInput) {command.replaceRectangle(aInput, aStr);}, ev.originalTarget); |
|
|
|
|
|
}, '矩形置換', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey(['C-x', 'r', 'o'], function (ev) { |
|
|
|
|
|
command.openRectangle(ev.originalTarget); |
|
|
|
|
|
}, '矩形行空け', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey(['C-x', 'r', 'k'], function (ev, arg) { |
|
|
|
|
|
command.kill.buffer = command.killRectangle(ev.originalTarget, !arg); |
|
|
|
|
|
}, '矩形キル', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey(['C-x', 'r', 'y'], function (ev) { |
|
|
|
|
|
command.yankRectangle(ev.originalTarget, command.kill.buffer); |
|
|
|
|
|
}, '矩形ヤンク', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey([['C-SPC'], ['C-@']], function (ev) { |
|
|
|
|
|
command.setMark(ev); |
|
|
|
|
|
}, 'マークをセット', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-o', function (ev) { |
|
|
|
|
|
command.openLine(ev); |
|
|
|
|
|
}, '行を開く (Open line)'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-\\', function (ev) { |
|
|
|
|
|
display.echoStatusBar("Redo!", 2000); |
|
|
|
|
|
goDoCommand("cmd_redo"); |
|
|
|
|
|
}, 'リドゥ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-a', function (ev) { |
|
|
|
|
|
command.beginLine(ev); |
|
|
|
|
|
}, '行頭へ移動'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-e', function (ev) { |
|
|
|
|
|
command.endLine(ev); |
|
|
|
|
|
}, '行末へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-h', function (ev) { |
|
|
|
|
|
command.previousChar(ev); |
|
|
|
|
|
}, '一文字左へ移動'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-f', function (ev) { |
|
|
|
|
|
command.forwardWord(ev); |
|
|
|
|
|
}, '一単語右へ移動'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-b', function (ev) { |
|
|
|
|
|
command.backwardWord(ev); |
|
|
|
|
|
}, '一単語左へ移動'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-j', function (ev) { |
|
|
|
|
|
command.nextLine(ev); |
|
|
|
|
|
}, '一行下へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-k', function (ev) { |
|
|
|
|
|
command.previousLine(ev); |
|
|
|
|
|
}, '一行上へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-v', function (ev) { |
|
|
|
|
|
command.pageDown(ev); |
|
|
|
|
|
}, '一画面分下へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-v', function (ev) { |
|
|
|
|
|
command.pageUp(ev); |
|
|
|
|
|
}, '一画面分上へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-<', function (ev) { |
|
|
|
|
|
command.moveTop(ev); |
|
|
|
|
|
}, 'テキストエリア先頭へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M->', function (ev) { |
|
|
|
|
|
command.moveBottom(ev); |
|
|
|
|
|
}, 'テキストエリア末尾へ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-d', function (ev) { |
|
|
|
|
|
goDoCommand("cmd_deleteCharForward"); |
|
|
|
|
|
}, '次の一文字削除'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-h', function (ev) { |
|
|
|
|
|
goDoCommand("cmd_deleteCharBackward"); |
|
|
|
|
|
}, '前の一文字を削除'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-d', function (ev) { |
|
|
|
|
|
command.deleteForwardWord(ev); |
|
|
|
|
|
}, '次の一単語を削除'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey([['C-<backspace>'], ['M-<delete>']], function (ev) { |
|
|
|
|
|
command.deleteBackwardWord(ev); |
|
|
|
|
|
}, '前の一単語を削除'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-u', function (ev, arg) { |
|
|
|
|
|
command.wordCommand(ev, arg, command.upcaseForwardWord, command.upcaseBackwardWord); |
|
|
|
|
|
}, '次の一単語を全て大文字に (Upper case)'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-c', function (ev, arg) { |
|
|
|
|
|
command.wordCommand(ev, arg, command.capitalizeForwardWord, command.capitalizeBackwardWord); |
|
|
|
|
|
}, '次の一単語をキャピタライズ'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-k', function (ev) { |
|
|
|
|
|
command.killLine(ev); |
|
|
|
|
|
}, 'カーソルから先を一行カット (Kill line)'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-y', command.yank, '貼り付け (Yank)'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-y', command.yankPop, '古いクリップボードの中身を順に貼り付け (Yank pop)', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-M-y', function (ev) { |
|
|
|
|
|
if (!command.kill.ring.length) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
let (ct = command.getClipboardText()) (!command.kill.ring.length || ct != command.kill.ring[0]) && |
|
|
|
|
|
command.pushKillRing(ct); |
|
|
|
|
|
prompt.selector({message: "Paste:", collection: command.kill.ring, callback: function (i) {if (i >= 0) {key.insertText(command.kill.ring[i]);}}}); |
|
|
|
|
|
}, '以前にコピーしたテキスト一覧から選択して貼り付け', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('C-w', function (ev) { |
|
|
|
|
|
goDoCommand("cmd_copy"); |
|
|
|
|
|
goDoCommand("cmd_delete"); |
|
|
|
|
|
command.resetMark(ev); |
|
|
|
|
|
}, '選択中のテキストを切り取り (Kill region)', true); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-n', function (ev) { |
|
|
|
|
|
command.walkInputElement(command.elementsRetrieverTextarea, true, true); |
|
|
|
|
|
}, '次のテキストエリアへフォーカス'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-p', function (ev) { |
|
|
|
|
|
command.walkInputElement(command.elementsRetrieverTextarea, false, true); |
|
|
|
|
|
}, '前のテキストエリアへフォーカス'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-w', function (ev) { |
|
|
|
|
|
command.copyRegion(ev); |
|
|
|
|
|
}, '選択中のテキストをコピー'); |
|
|
|
|
|
|
|
|
|
|
|
key.setEditKey('M-l', function (ev) { |
|
|
|
|
|
command.nextChar(ev); |
|
|
|
|
|
}, '一文字右へ移動'); |
|
|
|