Skip to content

Commit

Permalink
Logic is hard.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiwKerman committed May 15, 2015
1 parent 979faf6 commit 4f72410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion InfernalRobotics/InfernalRobotics/Gui/ControlsGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,8 @@ private void PresetsEditWindow(int windowID)
&& focusedControlName == lastFocusedControlName)
lastFocusedTextFieldValue = tmp;

var valueChanged = Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter;
var valueChanged = (thisControlName == focusedControlName &&
(Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter));

float tmpValue;

Expand Down

0 comments on commit 4f72410

Please sign in to comment.