0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 19:42:43 +00:00

A temporary, imperfect fix for the jump hotkeys

This commit is contained in:
David Bolack
2024-08-28 20:48:33 -05:00
parent 2dbb92a37e
commit 132a7d1f53

View File

@@ -85,7 +85,8 @@ const Editor = createClass({
},
handleControlKeys : function(e){
if(!(e.ctrlKey || e.metaKey)) return;
console.log(e);
if(!(e.ctrlKey && e.metaKey)) return;
const LEFTARROW_KEY = 37;
const RIGHTARROW_KEY = 39;
if (e.shiftKey && (e.keyCode == RIGHTARROW_KEY)) this.brewJump();