Show More
@@ -8,34 +8,42 b'' | |||
|
8 | 8 | var IPython = (function (IPython) { |
|
9 | 9 | "use strict"; |
|
10 | 10 | |
|
11 | var platform = IPython.utils.platform; | |
|
12 | ||
|
11 | 13 | var QuickHelp = function (selector) { |
|
12 | 14 | }; |
|
15 | var cmd_ctrl = 'Ctrl'; | |
|
16 | ||
|
17 | if (platform === 'MacOS') { | |
|
18 | cmd_ctrl = 'Cmd'; | |
|
19 | } | |
|
13 | 20 | |
|
14 | 21 | var cm_shortcuts = [ |
|
15 | 22 | { shortcut:"Insert", help:"toggle overwrite" }, |
|
16 | 23 | { shortcut:"Tab", help:"code completion" }, |
|
17 | 24 | { shortcut:"Shift-Tab", help:"help introspection" }, |
|
18 |
{ shortcut: |
|
|
19 |
{ shortcut: |
|
|
20 |
{ shortcut: |
|
|
21 |
{ shortcut: |
|
|
22 |
{ shortcut: |
|
|
23 |
{ shortcut: |
|
|
24 |
{ shortcut: |
|
|
25 |
{ shortcut: |
|
|
26 |
{ shortcut: |
|
|
25 | { shortcut: cmd_ctrl + "-]", help:"indent" }, | |
|
26 | { shortcut: cmd_ctrl + "-[", help:"dedent" }, | |
|
27 | { shortcut: cmd_ctrl + "-A", help:"select all" }, | |
|
28 | { shortcut: cmd_ctrl + "-D", help:"delete line" }, | |
|
29 | { shortcut: cmd_ctrl + "-Z", help:"undo" }, | |
|
30 | { shortcut: cmd_ctrl + "-Shift-Z", help:"redo" }, | |
|
31 | { shortcut: cmd_ctrl + "-Y", help:"redo" }, | |
|
32 | { shortcut: cmd_ctrl + "-Up", help:"go to cell start" }, | |
|
33 | { shortcut: cmd_ctrl + "-End", help:"go to cell start" }, | |
|
27 | 34 | { shortcut:"PageUp", help:"go to cell start" }, |
|
28 | 35 | { shortcut:"---", help:"go to cell end" }, |
|
29 |
{ shortcut: |
|
|
36 | { shortcut: cmd_ctrl + "-Down", help:"go to cell end" }, | |
|
30 | 37 | { shortcut:"PageDown", help:"go to cell end" }, |
|
31 | 38 | { shortcut:"Alt-Left", help:"go one word left" }, |
|
32 | 39 | { shortcut:"Alt-Right", help:"go one word right" }, |
|
33 |
{ shortcut: |
|
|
40 | { shortcut: cmd_ctrl + "-Left", help:"go to line start" }, | |
|
34 | 41 | { shortcut:"Home", help:"go to line start" }, |
|
35 |
{ shortcut: |
|
|
42 | { shortcut: cmd_ctrl + "-Right", help:"go to line end" }, | |
|
36 | 43 | { shortcut:"End", help:"go to line end" }, |
|
37 | 44 | { shortcut:"Alt-Backspace", help:"del word before" }, |
|
38 | 45 | |
|
46 | ||
|
39 | 47 | ] |
|
40 | 48 | |
|
41 | 49 |
General Comments 0
You need to be logged in to leave comments.
Login now