imgui: Fix keyboard modifiers on Mac

This commit is contained in:
Vojtech Kral 2019-02-18 16:44:35 +01:00
parent 2de814d478
commit 5de52b7da4

View file

@ -358,6 +358,9 @@ void ImGuiWrapper::init_input()
io.KeyMap[ImGuiKey_Y] = 'Y';
io.KeyMap[ImGuiKey_Z] = 'Z';
// Don't let imgui special-case Mac, wxWidgets already do that
io.ConfigMacOSXBehaviors = false;
// Setup clipboard interaction callbacks
io.SetClipboardTextFn = clipboard_set;
io.GetClipboardTextFn = clipboard_get;