Skip to content

Commit 9214cd8

Browse files
committed
[macOS] Fix keyboard mapping init in embedded display server.
1 parent 4ebf67c commit 9214cd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/macos/display_server_macos.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3721,8 +3721,6 @@
37213721
}
37223722

37233723
DisplayServerMacOS::DisplayServerMacOS(const String &p_rendering_driver, WindowMode p_mode, VSyncMode p_vsync_mode, uint32_t p_flags, const Vector2i *p_position, const Vector2i &p_resolution, int p_screen, Context p_context, int64_t p_parent_window, Error &r_error) {
3724-
KeyMappingMacOS::initialize();
3725-
37263724
Input::get_singleton()->set_event_dispatch_function(_dispatch_input_events);
37273725

37283726
r_error = OK;

platform/macos/display_server_macos_base.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@
302302
}
303303

304304
DisplayServerMacOSBase::DisplayServerMacOSBase() {
305+
KeyMappingMacOS::initialize();
306+
305307
// Init TTS
306308
bool tts_enabled = GLOBAL_GET("audio/general/text_to_speech");
307309
if (tts_enabled) {

0 commit comments

Comments
 (0)