From e792201cd61ef3cbfdbad3bb1994655ec7b305aa Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 31 Oct 2015 14:00:23 +0000 Subject: [PATCH] back out ctrl-alt-number room switching as nobody used it and it broke Tor's keyboard --- src/controllers/pages/MatrixChat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index e1f6afb95e..a38ba8e4e7 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -344,6 +344,9 @@ module.exports = { onKeyDown: function(ev) { if (ev.altKey) { + /* + // Remove this for now as ctrl+alt = alt-gr so this breaks keyboards which rely on alt-gr for numbers + // Will need to find a better meta key if anyone actually cares about using this. if (ev.ctrlKey && ev.keyCode > 48 && ev.keyCode < 58) { dis.dispatch({ action: 'view_indexed_room', @@ -353,6 +356,7 @@ module.exports = { ev.preventDefault(); return; } + */ switch (ev.keyCode) { case 38: dis.dispatch({action: 'view_prev_room'});