diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index d45bc17..746ec8c 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -130,9 +130,9 @@ var IPython = (function (IPython) { that.select_next(); that.control_key_active = false; return false; - } else if (event.which === 72 && that.control_key_active) { - // Show keyboard shortcuts = h - that.show_keyboard_shortcuts(); + } else if (event.which === 76 && that.control_key_active) { + // Toggle line numbers = l + that.cell_toggle_line_numbers(); that.control_key_active = false; return false; } else if (event.which === 73 && that.control_key_active) { @@ -140,16 +140,16 @@ var IPython = (function (IPython) { IPython.notebook.kernel.interrupt(); that.control_key_active = false; return false; - } else if (event.which === 76 && that.control_key_active) { - // Toggle line numbers = l - that.cell_toggle_line_numbers(); - that.control_key_active = false; - return false; } else if (event.which === 190 && that.control_key_active) { // Restart kernel = . # matches qt console IPython.notebook.restart_kernel(); that.control_key_active = false; return false; + } else if (event.which === 72 && that.control_key_active) { + // Show keyboard shortcuts = h + that.show_keyboard_shortcuts(); + that.control_key_active = false; + return false; } else if (that.control_key_active) { that.control_key_active = false; return true;