mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-25 18:22:42 +00:00
Missed a couple of variable repalcements.
This commit is contained in:
@@ -127,13 +127,13 @@ const Editor = createClass({
|
||||
|
||||
// Toggle Live-scrolling on Scroll Lock
|
||||
if(e.keyCode == SCROLLLOCK_KEY) {
|
||||
this.setState( {liveScroll: !liveScroll} );
|
||||
this.setState( {liveScroll: !this.props.liveScroll} );
|
||||
}
|
||||
|
||||
if(!(e.ctrlKey || e.metaKey)) return;
|
||||
|
||||
// Handle CTRL-HOME and CTRL-END
|
||||
if(((e.keyCode == END_KEY) || (e.keyCode == HOME_KEY)) && liveScroll) this.brewJump();
|
||||
if(((e.keyCode == END_KEY) || (e.keyCode == HOME_KEY)) && this.props.liveScroll) this.brewJump();
|
||||
|
||||
// Brew Jump on CTRL-J
|
||||
if((!e.shiftKey) && (e.keyCode == M_KEY)) this.brewJump();
|
||||
|
||||
Reference in New Issue
Block a user