0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 11:22:39 +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){
if(!(e.ctrlKey || e.metaKey)) return;
const J_KEY = 74;
if((!e.shiftKey) && (e.keyCode == J_KEY)) this.brewJump();
if (e.shiftKey && (e.keyCode == J_KEY)) this.sourceJump();
if( e.keyCode == J_KEY) {
console.log(e);
const M_KEY = 77;
if((!e.shiftKey) && (e.keyCode == M_KEY)) this.brewJump();
if (e.shiftKey && (e.keyCode == M_KEY)) this.sourceJump();
if( e.keyCode == M_KEY) {
e.stopPropagation();
e.preventDefault();
}