From 3dd1bf96c6ecc02669579ddda0cd4774c1c35fde Mon Sep 17 00:00:00 2001 From: Robert Jordan Date: Wed, 13 May 2015 12:10:14 -0400 Subject: [PATCH] If MAC is defined Cmd+V will be used instead. --- src/platform/shared.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/shared.c b/src/platform/shared.c index 9c01203143..d5e2010966 100644 --- a/src/platform/shared.c +++ b/src/platform/shared.c @@ -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();