Browse Source

Merge pull request #703 from qjf1992/master

Fixed a bug when click KeypadEnter on BlockEditor
master
Steve Halliwell 7 years ago committed by GitHub
parent
commit
3abcca6f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Assets/Fungus/Scripts/Editor/BlockEditor.cs

4
Assets/Fungus/Scripts/Editor/BlockEditor.cs

@ -303,7 +303,7 @@ namespace Fungus.EditorUtils
} }
if (commandSelectedByTextInput != null && if (commandSelectedByTextInput != null &&
Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter) (Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter))
{ {
AddCommandCallback(commandSelectedByTextInput); AddCommandCallback(commandSelectedByTextInput);
commandSelectedByTextInput = null; commandSelectedByTextInput = null;
@ -1296,4 +1296,4 @@ namespace Fungus.EditorUtils
Repaint(); Repaint();
} }
} }
} }

Loading…
Cancel
Save