From d1bf9a5dfcb9be3d32ee9aa43f1f270e7a67ea7a 2013-10-11 20:13:48 From: Min RK Date: 2013-10-11 20:13:48 Subject: [PATCH] Merge pull request #4379 from ivanov/split-shortcut-ff fix (CTRL-M -) shortcut for splitting cell in FF --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 7111209..2392690 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -317,7 +317,9 @@ var IPython = (function (IPython) { that.undelete(); that.control_key_active = false; return false; - } else if (event.which === 189 && that.control_key_active) { + } else if ((event.which === 189 || event.which === 173) && + that.control_key_active) { + // how fun! '-' is 189 in Chrome, but 173 in FF and Opera // Split cell = - that.split_cell(); that.control_key_active = false;