diff --git a/xbmc/windowing/WinEventsSDL.cpp b/xbmc/windowing/WinEventsSDL.cpp index c266c1e58ba26..00d948876b2bc 100644 --- a/xbmc/windowing/WinEventsSDL.cpp +++ b/xbmc/windowing/WinEventsSDL.cpp @@ -25,6 +25,7 @@ #include "WinEventsSDL.h" #include "Application.h" #include "ApplicationMessenger.h" +#include "GUIUserMessages.h" #include "guilib/GUIWindowManager.h" #include "guilib/Key.h" #ifdef HAS_SDL_JOYSTICK @@ -418,6 +419,19 @@ bool CWinEventsSDL::ProcessOSXShortcuts(SDL_Event& event) CApplicationMessenger::Get().Minimize(); return true; + case SDLK_v: // CMD-v to paste clipboard text + if (g_Windowing.IsTextInputEnabled()) + { + const char *szStr = Cocoa_Paste(); + if (szStr) + { + CGUIMessage msg(GUI_MSG_INPUT_TEXT, 0, 0); + msg.SetLabel(szStr); + g_windowManager.SendMessage(msg, g_windowManager.GetFocusedWindow()); + } + } + return true; + default: return false; }