Show More
@@ -88,6 +88,21 b' var IPython = (function (IPython) {' | |||||
88 | } else if (event.which === 77 && event.ctrlKey) { |
|
88 | } else if (event.which === 77 && event.ctrlKey) { | |
89 | that.control_key_active = true; |
|
89 | that.control_key_active = true; | |
90 | return false; |
|
90 | return false; | |
|
91 | } else if (event.which === 88 && that.control_key_active) { | |||
|
92 | // Cut selected cell = x | |||
|
93 | that.cut_cell(); | |||
|
94 | that.control_key_active = false; | |||
|
95 | return false; | |||
|
96 | } else if (event.which === 67 && that.control_key_active) { | |||
|
97 | // Copy selected cell = c | |||
|
98 | that.copy_cell(); | |||
|
99 | that.control_key_active = false; | |||
|
100 | return false; | |||
|
101 | } else if (event.which === 86 && that.control_key_active) { | |||
|
102 | // Paste selected cell = v | |||
|
103 | that.paste_cell(); | |||
|
104 | that.control_key_active = false; | |||
|
105 | return false; | |||
91 | } else if (event.which === 68 && that.control_key_active) { |
|
106 | } else if (event.which === 68 && that.control_key_active) { | |
92 | // Delete selected cell = d |
|
107 | // Delete selected cell = d | |
93 | that.delete_cell(); |
|
108 | that.delete_cell(); | |
@@ -103,8 +118,8 b' var IPython = (function (IPython) {' | |||||
103 | that.insert_code_cell_below(); |
|
118 | that.insert_code_cell_below(); | |
104 | that.control_key_active = false; |
|
119 | that.control_key_active = false; | |
105 | return false; |
|
120 | return false; | |
106 |
} else if (event.which === |
|
121 | } else if (event.which === 89 && that.control_key_active) { | |
107 |
// To code = |
|
122 | // To code = y | |
108 | that.to_code(); |
|
123 | that.to_code(); | |
109 | that.control_key_active = false; |
|
124 | that.control_key_active = false; | |
110 | return false; |
|
125 | return false; |
@@ -28,6 +28,9 b' var IPython = (function (IPython) {' | |||||
28 | var shortcuts = [ |
|
28 | var shortcuts = [ | |
29 | {key: 'Shift-Enter', help: 'run cell'}, |
|
29 | {key: 'Shift-Enter', help: 'run cell'}, | |
30 | {key: 'Ctrl-Enter', help: 'run cell in-place'}, |
|
30 | {key: 'Ctrl-Enter', help: 'run cell in-place'}, | |
|
31 | {key: 'Ctrl-m x', help: 'cut cell'}, | |||
|
32 | {key: 'Ctrl-m c', help: 'copy cell'}, | |||
|
33 | {key: 'Ctrl-m v', help: 'paste cell'}, | |||
31 | {key: 'Ctrl-m d', help: 'delete cell'}, |
|
34 | {key: 'Ctrl-m d', help: 'delete cell'}, | |
32 | {key: 'Ctrl-m a', help: 'insert cell above'}, |
|
35 | {key: 'Ctrl-m a', help: 'insert cell above'}, | |
33 | {key: 'Ctrl-m b', help: 'insert cell below'}, |
|
36 | {key: 'Ctrl-m b', help: 'insert cell below'}, | |
@@ -36,7 +39,7 b' var IPython = (function (IPython) {' | |||||
36 | {key: 'Ctrl-m s', help: 'save notebook'}, |
|
39 | {key: 'Ctrl-m s', help: 'save notebook'}, | |
37 | {key: 'Ctrl-m j', help: 'move cell down'}, |
|
40 | {key: 'Ctrl-m j', help: 'move cell down'}, | |
38 | {key: 'Ctrl-m k', help: 'move cell up'}, |
|
41 | {key: 'Ctrl-m k', help: 'move cell up'}, | |
39 |
{key: 'Ctrl-m |
|
42 | {key: 'Ctrl-m y', help: 'code cell'}, | |
40 | {key: 'Ctrl-m m', help: 'markdown cell'}, |
|
43 | {key: 'Ctrl-m m', help: 'markdown cell'}, | |
41 | {key: 'Ctrl-m p', help: 'select previous'}, |
|
44 | {key: 'Ctrl-m p', help: 'select previous'}, | |
42 | {key: 'Ctrl-m n', help: 'select next'}, |
|
45 | {key: 'Ctrl-m n', help: 'select next'}, |
@@ -91,8 +91,8 b'' | |||||
91 | <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Below</a></li> |
|
91 | <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Below</a></li> | |
92 | <li id="delete_cell"><a href="#">Delete</a></li> |
|
92 | <li id="delete_cell"><a href="#">Delete</a></li> | |
93 | <hr/> |
|
93 | <hr/> | |
94 |
<li id="move_cell_up"><a href="#">Move |
|
94 | <li id="move_cell_up"><a href="#">Move Up</a></li> | |
95 |
<li id="move_cell_down"><a href="#">Move |
|
95 | <li id="move_cell_down"><a href="#">Move Down</a></li> | |
96 | <hr/> |
|
96 | <hr/> | |
97 | <li id="select_previous"><a href="#">Select Previous</a></li> |
|
97 | <li id="select_previous"><a href="#">Select Previous</a></li> | |
98 | <li id="select_next"><a href="#">Select Next</a></li> |
|
98 | <li id="select_next"><a href="#">Select Next</a></li> |
General Comments 0
You need to be logged in to leave comments.
Login now