mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 21:52:43 +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
|
// Toggle Live-scrolling on Scroll Lock
|
||||||
if(e.keyCode == SCROLLLOCK_KEY) {
|
if(e.keyCode == SCROLLLOCK_KEY) {
|
||||||
this.setState( {liveScroll: !liveScroll} );
|
this.setState( {liveScroll: !this.props.liveScroll} );
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(e.ctrlKey || e.metaKey)) return;
|
if(!(e.ctrlKey || e.metaKey)) return;
|
||||||
|
|
||||||
// Handle CTRL-HOME and CTRL-END
|
// 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
|
// Brew Jump on CTRL-J
|
||||||
if((!e.shiftKey) && (e.keyCode == M_KEY)) this.brewJump();
|
if((!e.shiftKey) && (e.keyCode == M_KEY)) this.brewJump();
|
||||||
|
|||||||
Reference in New Issue
Block a user