File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
#include " editor_tools.h"
2
2
#include " ../ecmascript_language.h"
3
3
#include " core/math/expression.h"
4
+ #include " core/os/keyboard.h"
4
5
#include " editor/filesystem_dock.h"
5
6
6
7
#define TS_IGNORE " //@ts-ignore\n "
@@ -612,14 +613,10 @@ void ECMAScriptPlugin::_export_typescript_declare_file(const String &p_path) {
612
613
613
614
/* *
614
615
* KEY_MASK_CMD docs has value listed as "platform-dependent",
615
- * so the actual values have to be manually changed depending on the platform.
616
+ * so we have to retreive the actual value manually
616
617
*/
617
618
if (dict[" name" ] == " KEY_MASK_CMD" ) {
618
- #ifdef APPLE_STYLE_KEYS
619
- dict[" value" ] = (1 << 27 );
620
- #else
621
- dict[" value" ] = (1 << 28 );
622
- #endif
619
+ dict[" value" ] = KEY_MASK_CMD;
623
620
}
624
621
625
622
enum_str += apply_pattern (const_str, dict);
You can’t perform that action at this time.
0 commit comments