0
0
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:
David Bolack
2024-06-03 02:39:20 -05:00
parent 4818f70aed
commit ea9f9a8c36

View File

@@ -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();