Browse Source

Merge branch 'dev'

pull/1/head
10sr 12 years ago
parent
commit
507da70606
2 changed files with 11 additions and 23 deletions
  1. +9
    -22
      _keysnail.js
  2. +2
    -1
      emacs.el

+ 9
- 22
_keysnail.js View File

@@ -498,7 +498,7 @@ ext.add("list-tab-history", function () {
// ========================= Special key settings ========================== // // ========================= Special key settings ========================== //


key.quitKey = "<delete>"; key.quitKey = "<delete>";
key.helpKey = "C-h";
key.helpKey = "<f1>";
key.escapeKey = "C-q"; key.escapeKey = "C-q";
key.macroStartKey = ""; key.macroStartKey = "";
key.macroEndKey = ""; key.macroEndKey = "";
@@ -510,11 +510,11 @@ key.suspendKey = "Not defined";


// ================================= Hooks ================================= // // ================================= Hooks ================================= //


hook.addToHook('KeySnailInitialized', function () {
hook.setHook('KeySnailInitialized', function () {
ext.exec("shiitake-enable-style"); ext.exec("shiitake-enable-style");
}); });


hook.addToHook('KeyBoardQuit', function (aEvent) {
hook.setHook('KeyBoardQuit', function (aEvent) {
ext.exec("hide-sidebar"); ext.exec("hide-sidebar");
let(elem = document.commandDispatcher.focusedElement) elem && elem.blur(); let(elem = document.commandDispatcher.focusedElement) elem && elem.blur();
gBrowser.focus(); gBrowser.focus();
@@ -540,16 +540,6 @@ hook.setHook('Unload', function () {
}); });
}); });


// hook.addToHook('LocationChange', function (aNsURI) {
// if(window.content.document.body){
// display.prettyPrint(window.content.document.title);
// }else{
// window.addEventListener("load", function(){
// disp = display;
// disp.prettyPrint(window.content.document.title);
// }, false);
// }
// });


// ============================= Key bindings ============================== // // ============================= Key bindings ============================== //


@@ -722,7 +712,8 @@ key.setViewKey([['<prior>'], ['<next>']], function (ev, arg) {
}, 'ignore'); }, 'ignore');


key.setViewKey(':', function (ev, arg) { key.setViewKey(':', function (ev, arg) {
return !document.getElementById("keysnail-prompt").hidden && document.getElementById("keysnail-prompt-textbox").focus();
return !document.getElementById("keysnail-prompt").hidden &&
document.getElementById("keysnail-prompt-textbox").focus();
}, 'KeySnail のプロンプトへフォーカス', true); }, 'KeySnail のプロンプトへフォーカス', true);


key.setViewKey('H', function (ev, arg) { key.setViewKey('H', function (ev, arg) {
@@ -745,14 +736,10 @@ key.setViewKey('C-<backspace>', function (ev, arg) {
ext.exec("list-tab-history", arg, ev); ext.exec("list-tab-history", arg, ev);
}, 'List tab history', true); }, 'List tab history', true);


key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス');

key.setViewKey('I', function (ev, arg) { key.setViewKey('I', function (ev, arg) {
ext.exec('instapaper-post-page-with-comment', arg, ev);
ext.exec("instapaper-post-page-with-comment", arg, ev);
}, 'post page and comment', true); }, 'post page and comment', true);


key.setViewKey('C-<backspace>', function (ev, arg) {
ext.exec('list-tab-history', arg, ev);
}, 'List tab history', true);
key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス');

+ 2
- 1
emacs.el View File

@@ -605,7 +605,8 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB."
) )
(setq x-select-enable-clipboard t ; these settings seems to be useless when using emacs in terminal (setq x-select-enable-clipboard t ; these settings seems to be useless when using emacs in terminal
x-select-enable-primary nil) x-select-enable-primary nil)
(global-set-key "\C-y" 'x-clipboard-yank))
;; (global-set-key "\C-y" 'x-clipboard-yank)
)


;; urlに細かい説明あり。でも設定は上記だけでよさそう ;; urlに細かい説明あり。でも設定は上記だけでよさそう
;; http://garin.jp/doc/Linux/xwindow_clipboard ;; http://garin.jp/doc/Linux/xwindow_clipboard


Loading…
Cancel
Save