fixed some default keybindings
This commit is contained in:
parent
65d3586d45
commit
6c6292380c
3 changed files with 46 additions and 45 deletions
|
|
@ -861,7 +861,6 @@ var Editor = function(renderer, doc) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
options.needle = needle;
|
options.needle = needle;
|
||||||
this.$search.set(options);
|
this.$search.set(options);
|
||||||
console.log("options: ", JSON.stringify(this.$search.$options));
|
|
||||||
this.$find();
|
this.$find();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,38 +8,39 @@
|
||||||
require.def("ace/conf/keybindings/default_mac", function() {
|
require.def("ace/conf/keybindings/default_mac", function() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"selectall": "Meta-A",
|
"selectall": "Command-A",
|
||||||
"removeline": "Meta-D",
|
"removeline": "Command-D",
|
||||||
"gotoline": "Meta-L",
|
"gotoline": "Command-L",
|
||||||
"togglecomment": "Meta-7",
|
"togglecomment": "Command-7",
|
||||||
"findnext": "Meta-K",
|
"findnext": "Command-K",
|
||||||
"findprevious": "Meta-Shift-K",
|
"findprevious": "Command-Shift-K",
|
||||||
"find": "Meta-F",
|
"find": "Command-F",
|
||||||
"undo": "Meta-Z",
|
"replace": "Command-R",
|
||||||
"redo": "Meta-Shift-Z|Meta-Y",
|
"undo": "Command-Z",
|
||||||
|
"redo": "Command-Shift-Z|Command-Y",
|
||||||
"overwrite": "Insert",
|
"overwrite": "Insert",
|
||||||
"copylinesup": "Meta-Alt-Up",
|
"copylinesup": "Command-Option-Up",
|
||||||
"movelinesup": "Alt-Up",
|
"movelinesup": "Option-Up",
|
||||||
"selecttostart": "Meta-Shift-Up",
|
"selecttostart": "Command-Shift-Up",
|
||||||
"gotostart": "Meta-Home|Meta-Up",
|
"gotostart": "Command-Home|Command-Up",
|
||||||
"selectup": "Shift-Up",
|
"selectup": "Shift-Up",
|
||||||
"golineup": "Up",
|
"golineup": "Up",
|
||||||
"copylinesdown": "Meta-Alt-Down",
|
"copylinesdown": "Command-Option-Down",
|
||||||
"movelinsedown": "Alt-Down",
|
"movelinsedown": "Option-Down",
|
||||||
"selecttoend": "Meta-Shift-Down",
|
"selecttoend": "Command-Shift-Down",
|
||||||
"gotoend": "Meta-End|Meta-Down",
|
"gotoend": "Command-End|Command-Down",
|
||||||
"selectdown": "Shift-Down",
|
"selectdown": "Shift-Down",
|
||||||
"godown": "Down",
|
"godown": "Down",
|
||||||
"selectwordleft": "Alt-Shift-Left",
|
"selectwordleft": "Option-Shift-Left",
|
||||||
"gotowordleft": "Alt-Left",
|
"gotowordleft": "Option-Left",
|
||||||
"selecttolinestart": "Meta-Shift-Left",
|
"selecttolinestart": "Command-Shift-Left",
|
||||||
"gotolinestart": "Meta-Left|Home",
|
"gotolinestart": "Command-Left|Home",
|
||||||
"selectleft": "Shift-Left",
|
"selectleft": "Shift-Left",
|
||||||
"gotoleft": "Left",
|
"gotoleft": "Left",
|
||||||
"selectwordright": "Alt-Shift-Right",
|
"selectwordright": "Option-Shift-Right",
|
||||||
"gotowordright": "Alt-Right",
|
"gotowordright": "Option-Right",
|
||||||
"selecttolineend": "Meta-Shift-Right",
|
"selecttolineend": "Command-Shift-Right",
|
||||||
"gotolineend": "Meta-Right|End",
|
"gotolineend": "Command-Right|End",
|
||||||
"selectright": "Shift-Right",
|
"selectright": "Shift-Right",
|
||||||
"gotoright": "Right",
|
"gotoright": "Right",
|
||||||
"selectpagedown": "Shift-PageDown",
|
"selectpagedown": "Shift-PageDown",
|
||||||
|
|
|
||||||
|
|
@ -8,38 +8,39 @@
|
||||||
require.def("ace/conf/keybindings/default_win", function() {
|
require.def("ace/conf/keybindings/default_win", function() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"selectall": "Control-A",
|
"selectall": "Ctrl-A",
|
||||||
"removeline": "Control-D",
|
"removeline": "Ctrl-D",
|
||||||
"gotoline": "Control-L",
|
"gotoline": "Ctrl-L",
|
||||||
"togglecomment": "Control-7",
|
"togglecomment": "Ctrl-7",
|
||||||
"findnext": "Control-K",
|
"findnext": "Ctrl-K",
|
||||||
"findprevious": "Control-Shift-K",
|
"findprevious": "Ctrl-Shift-K",
|
||||||
"find": "Control-F",
|
"find": "Ctrl-F",
|
||||||
"undo": "Control-Z",
|
"replace": "Ctrl-R",
|
||||||
"redo": "Control-Shift-Z|Control-Y",
|
"undo": "Ctrl-Z",
|
||||||
|
"redo": "Ctrl-Shift-Z|Ctrl-Y",
|
||||||
"overwrite": "Insert",
|
"overwrite": "Insert",
|
||||||
"copylinesup": "Control-Alt-Up",
|
"copylinesup": "Ctrl-Alt-Up",
|
||||||
"movelinesup": "Alt-Up",
|
"movelinesup": "Alt-Up",
|
||||||
"selecttostart": "Control-Shift-Up",
|
"selecttostart": "Ctrl-Shift-Up",
|
||||||
"gotostart": "Control-Home|Control-Up",
|
"gotostart": "Ctrl-Home|Ctrl-Up",
|
||||||
"selectup": "Shift-Up",
|
"selectup": "Shift-Up",
|
||||||
"golineup": "Up",
|
"golineup": "Up",
|
||||||
"copylinesdown": "Control-Alt-Down",
|
"copylinesdown": "Ctrl-Alt-Down",
|
||||||
"movelinsedown": "Alt-Down",
|
"movelinsedown": "Alt-Down",
|
||||||
"selecttoend": "Control-Shift-Down",
|
"selecttoend": "Ctrl-Shift-Down",
|
||||||
"gotoend": "Control-End|Control-Down",
|
"gotoend": "Ctrl-End|Ctrl-Down",
|
||||||
"selectdown": "Shift-Down",
|
"selectdown": "Shift-Down",
|
||||||
"godown": "Down",
|
"godown": "Down",
|
||||||
"selectwordleft": "Alt-Shift-Left",
|
"selectwordleft": "Alt-Shift-Left",
|
||||||
"gotowordleft": "Alt-Left",
|
"gotowordleft": "Alt-Left",
|
||||||
"selecttolinestart": "Control-Shift-Left",
|
"selecttolinestart": "Ctrl-Shift-Left",
|
||||||
"gotolinestart": "Control-Left|Home",
|
"gotolinestart": "Ctrl-Left|Home",
|
||||||
"selectleft": "Shift-Left",
|
"selectleft": "Shift-Left",
|
||||||
"gotoleft": "Left",
|
"gotoleft": "Left",
|
||||||
"selectwordright": "Alt-Shift-Right",
|
"selectwordright": "Alt-Shift-Right",
|
||||||
"gotowordright": "Alt-Right",
|
"gotowordright": "Alt-Right",
|
||||||
"selecttolineend": "Control-Shift-Right",
|
"selecttolineend": "Ctrl-Shift-Right",
|
||||||
"gotolineend": "Control-Right|End",
|
"gotolineend": "Ctrl-Right|End",
|
||||||
"selectright": "Shift-Right",
|
"selectright": "Shift-Right",
|
||||||
"gotoright": "Right",
|
"gotoright": "Right",
|
||||||
"selectpagedown": "Shift-PageDown",
|
"selectpagedown": "Shift-PageDown",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue