summaryrefslogtreecommitdiff
path: root/editor/plugins/node_3d_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-11 11:20:45 +0200
committerGitHub <noreply@github.com>2021-08-11 11:20:45 +0200
commitc00303ff55f2a67d5cb1a031070e3b1fe7b15a9e (patch)
tree41c169c558961c715283d70822a703bd0a7c0706 /editor/plugins/node_3d_editor_plugin.cpp
parenta902f760634432adcb5f74b3b6cd27a7275a320f (diff)
parentfa3a32a2d6b054543645b0d4752514c90732b935 (diff)
Merge pull request #47378 from aaronfranke/use-input-enums
Use key enum instead of plain integers for input code
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.cpp')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index 7acf5c2013..7e143241f3 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -2457,7 +2457,7 @@ static bool is_shortcut_pressed(const String &p_path) {
return false;
}
const Input &input = *Input::get_singleton();
- int keycode = k->get_keycode();
+ Key keycode = k->get_keycode();
return input.is_key_pressed(keycode);
}