Skip to content

Commit

Permalink
Keep kernel-related bindings together in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
fperez committed Oct 17, 2011
1 parent 0f5ba50 commit 2b62313
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions IPython/frontend/html/notebook/static/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,26 +130,26 @@ 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) {
// Interrupt kernel = i
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;
Expand Down

0 comments on commit 2b62313

Please sign in to comment.