mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 06:52:38 +00:00
Change Jump hotkeys to M ( move ) bindings.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user