Getting On-Screen Keyboard "Paste" button to work

I THINK I've got it.  I admit I don't understand the OSK code _at all_.
This commit is contained in:
Bill Kendrick 2024-12-25 10:39:49 -08:00
parent 9103b783ce
commit f9728edd05
3 changed files with 9 additions and 5 deletions

View file

@ -3155,7 +3155,7 @@ static void mainloop(void)
update_screen_rect(&r_tools);
}
}
else if ((key == SDLK_v && (mod & KMOD_CTRL)) && !noshortcuts)
else if (((key == SDLK_v && (mod & KMOD_CTRL)) && !noshortcuts) || key == SDLK_PASTE)
{
/* Ctrl-V - Paste */
if (cur_tool == TOOL_TEXT || cur_tool == TOOL_LABEL)
@ -3220,7 +3220,7 @@ static void mainloop(void)
|| event.key.keysym.sym == SDLK_TAB
|| event.key.keysym.sym == SDLK_LALT || event.key.keysym.sym == SDLK_RALT)))
{
/* Handle key in text tool: */
/* Handle special keys key in text tool: */
if (((cur_tool == TOOL_TEXT || cur_tool == TOOL_LABEL)
&& cursor_x != -1 && cursor_y != -1) || (cur_tool == TOOL_LABEL