|
|
|
|
@ -21,36 +21,22 @@ var IPython = (function (IPython) {
|
|
|
|
|
cmd_ctrl = 'Cmd-';
|
|
|
|
|
platform_specific = [
|
|
|
|
|
{ shortcut: "Cmd-Up", help:"go to cell start" },
|
|
|
|
|
{ shortcut: "Cmd-End", help:"go to cell start" },
|
|
|
|
|
{ shortcut: "PageUp", help:"go to cell start" },
|
|
|
|
|
{ shortcut: "Cmd-Down", help:"go to cell end" },
|
|
|
|
|
{ shortcut: "PageDown", help:"go to cell end" },
|
|
|
|
|
{ shortcut: "Alt-Left", help:"go one word left" },
|
|
|
|
|
{ shortcut: "Alt-Right", help:"go one word right" },
|
|
|
|
|
{ shortcut: "Cmd-Left", help:"go to line start" },
|
|
|
|
|
{ shortcut: "Home", help:"go to line start" },
|
|
|
|
|
{ shortcut: "Cmd-Right", help:"go to line end" },
|
|
|
|
|
{ shortcut:"End", help:"go to line end" },
|
|
|
|
|
{ shortcut:"Alt-Backspace", help:"del word before" },
|
|
|
|
|
{ shortcut:"Ctrl-Alt-Backspace", help:"del word after" },
|
|
|
|
|
{ shortcut:"Alt-Delete", help:"del word after" },
|
|
|
|
|
{ shortcut: "Opt-Left", help:"go one word left" },
|
|
|
|
|
{ shortcut: "Opt-Right", help:"go one word right" },
|
|
|
|
|
{ shortcut: "Opt-Backspace", help:"del word before" },
|
|
|
|
|
{ shortcut: "Opt-Delete", help:"del word after" },
|
|
|
|
|
];
|
|
|
|
|
} else {
|
|
|
|
|
// PC specific
|
|
|
|
|
platform_specific = [
|
|
|
|
|
{ shortcut: "Ctrl-Home", help:"go to cell start" },
|
|
|
|
|
{ shortcut: "Alt-Up", help:"go to cell start" },
|
|
|
|
|
{ shortcut: "PageUp", help:"go to cell start" },
|
|
|
|
|
{ shortcut: "Ctrl-End", help:"go to cell end" },
|
|
|
|
|
{ shortcut: "Ctrl-Down", help:"go to cell end" },
|
|
|
|
|
{ shortcut: "PageDown", help:"go to cell end" },
|
|
|
|
|
{ shortcut: "Ctrl-Left", help:"go one word left" },
|
|
|
|
|
{ shortcut: "Ctrl-Right", help:"go one word right" },
|
|
|
|
|
{ shortcut: "Alt-Right", help:"go to cell end" },
|
|
|
|
|
{ shortcut: "Alt-Left", help:"go to line start" },
|
|
|
|
|
{ shortcut: "Home", help:"go to line start" },
|
|
|
|
|
{ shortcut: "Alt-Right", help:"go to line end" },
|
|
|
|
|
{ shortcut: "End", help:"go to line end" },
|
|
|
|
|
{ shortcut: "Ctrl-Backspace", help:"del word before" },
|
|
|
|
|
{ shortcut: "Ctrl-Delete", help:"del word after" },
|
|
|
|
|
];
|
|
|
|
|
@ -63,7 +49,6 @@ var IPython = (function (IPython) {
|
|
|
|
|
{ shortcut: cmd_ctrl + "]", help:"indent" },
|
|
|
|
|
{ shortcut: cmd_ctrl + "[", help:"dedent" },
|
|
|
|
|
{ shortcut: cmd_ctrl + "a", help:"select all" },
|
|
|
|
|
{ shortcut: cmd_ctrl + "d", help:"delete line" },
|
|
|
|
|
{ shortcut: cmd_ctrl + "z", help:"undo" },
|
|
|
|
|
{ shortcut: cmd_ctrl + "Shift-z", help:"redo" },
|
|
|
|
|
{ shortcut: cmd_ctrl + "y", help:"redo" },
|
|
|
|
|
|