Browse Source

Fixed a bug when click KeypadEnter on Editor

master
qjf1992 7 years ago committed by GitHub
parent
commit
32cd286b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Assets/Fungus/Scripts/Editor/BlockEditor.cs

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

@ -303,7 +303,7 @@ namespace Fungus.EditorUtils
}
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);
commandSelectedByTextInput = null;

Loading…
Cancel
Save