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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user