##// END OF EJS Templates
Adding back doc in Keyboard Shortcut.
Brian E. Granger -
Show More
@@ -28,8 +28,20 b' var IPython = (function (IPython) {'
28 var help, shortcut;
28 var help, shortcut;
29 var element = $('<div/>');
29 var element = $('<div/>');
30
30
31 // The documentation
32 var doc = $('<div/>').addClass('alert');
33 doc.append(
34 $('<button/>').addClass('close').attr('data-dismiss','alert').html('&times')
35 ).append(
36 'The IPython Notebook has two different keyboard input modes. <b>Edit mode</b> '+
37 'allow you the type code/text into a cell and is indicated by a green cell '+
38 'border. <b>Commmand mode</b> binds the keyboard to notebook level actions '+
39 'and is in dicated by a grey cell border.'
40 )
41 element.append(doc);
42
31 // Command mode
43 // Command mode
32 var cmd_div = $('<div/>').addClass('clearfix').append($('<h4>Command Mode</h4>'));
44 var cmd_div = $('<div/>').addClass('clearfix').append($('<h4>Command Mode (press ESC to enable)</h4>'));
33 element.append(cmd_div);
45 element.append(cmd_div);
34 for (var i=0; i<command_shortcuts.length; i++) {
46 for (var i=0; i<command_shortcuts.length; i++) {
35 help = command_shortcuts[i]['help'];
47 help = command_shortcuts[i]['help'];
@@ -43,7 +55,7 b' var IPython = (function (IPython) {'
43 };
55 };
44
56
45 // Edit mode
57 // Edit mode
46 var edit_div = $('<div/>').addClass('clearfix').append($('<h4>Edit Mode</h4>'));
58 var edit_div = $('<div/>').addClass('clearfix').append($('<h4>Edit Mode (press ENTER to enable)</h4>'));
47 element.append(edit_div);
59 element.append(edit_div);
48 for (var i=0; i<edit_shortcuts.length; i++) {
60 for (var i=0; i<edit_shortcuts.length; i++) {
49 help = edit_shortcuts[i]['help'];
61 help = edit_shortcuts[i]['help'];
General Comments 0
You need to be logged in to leave comments. Login now