From 32cd286b6168d253797702eced66910b0f49f85e Mon Sep 17 00:00:00 2001 From: qjf1992 <303813489@qq.com> Date: Fri, 3 Aug 2018 15:44:06 +0800 Subject: [PATCH] Fixed a bug when click KeypadEnter on Editor --- Assets/Fungus/Scripts/Editor/BlockEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Scripts/Editor/BlockEditor.cs b/Assets/Fungus/Scripts/Editor/BlockEditor.cs index 055f9a9c..847893e8 100644 --- a/Assets/Fungus/Scripts/Editor/BlockEditor.cs +++ b/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; @@ -1296,4 +1296,4 @@ namespace Fungus.EditorUtils Repaint(); } } -} \ No newline at end of file +}