1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

If MAC is defined Cmd+V will be used instead.

This commit is contained in:
Robert Jordan
2015-05-13 12:10:14 -04:00
parent 51ef292847
commit 3dd1bf96c6

View File

@@ -402,7 +402,12 @@ void platform_process_messages()
else if (e.key.keysym.sym == SDLK_RIGHT && gTextInput){
if (gTextInputCursorPosition < gTextInputLength) gTextInputCursorPosition++;
}
// Checks GUI modifier key for Macs otherwise ctrl key
#ifdef MAC
else if (e.key.keysym.sym == SDLK_v && SDL_GetModState() & KMOD_GUI && gTextInput) {
#else
else if (e.key.keysym.sym == SDLK_v && SDL_GetModState() & KMOD_CTRL && gTextInput) {
#endif
if (SDL_HasClipboardText()) {
char* text = SDL_GetClipboardText();