mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 16:36:58 +00:00
Change the last Boneheaded hot change to something better
CTRL-SHIFT-LEFTARROW - Source Jump CTRL-SHIFT-RIGHTARROW - Brew Jump
This commit is contained in:
1 parent
a48d9d295e
commit
a3f146cd53
1 file changed
+5
-4
@@ -88,10 +88,11 @@ const Editor = createClass({
|
||||
handleControlKeys : function(e){
|
||||
if(!(e.ctrlKey || e.metaKey)) return;
|
||||
console.log(e);
|
||||
const X_KEY = 88;
|
||||
if((!e.shiftKey) && (e.keyCode == X_KEY)) this.brewJump();
|
||||
if (e.shiftKey && (e.keyCode == X_KEY)) this.sourceJump();
|
||||
if( e.keyCode == X_KEY) {
|
||||
const LEFTARROW_KEY = 37;
|
||||
const RIGHTARROW_KEY = 39;
|
||||
if (e.shiftKey && (e.keyCode == LEFTARROW_KEY)) this.brewJump();
|
||||
if (e.shiftKey && (e.keyCode == RIGHTARROW_KEY)) this.sourceJump();
|
||||
if ((e.keyCode == LEFTARROW_KEY) || (e.keyCode == RIGHTARROW_KEY)) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user