0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 19:52:41 +00:00

Change Jump hotkeys to M ( move ) bindings.

This commit is contained in:
David Bolack
2024-05-19 11:12:19 -05:00
parent 9b0db15083
commit c0cc27a750

View File

@@ -82,10 +82,11 @@ const Editor = createClass({
handleControlKeys : function(e){ handleControlKeys : function(e){
if(!(e.ctrlKey || e.metaKey)) return; if(!(e.ctrlKey || e.metaKey)) return;
const J_KEY = 74; console.log(e);
if((!e.shiftKey) && (e.keyCode == J_KEY)) this.brewJump(); const M_KEY = 77;
if (e.shiftKey && (e.keyCode == J_KEY)) this.sourceJump(); if((!e.shiftKey) && (e.keyCode == M_KEY)) this.brewJump();
if( e.keyCode == J_KEY) { if (e.shiftKey && (e.keyCode == M_KEY)) this.sourceJump();
if( e.keyCode == M_KEY) {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
} }