Add Ctrl+X for roomname translator mode

This is a single block of code so it was easy to split from the
foundation commit.

This commit is part of rewritten history of the localization branch.
The original (unsquashed) commit history can be found here:
https://github.com/Dav999-v/VVVVVV/tree/localization-orig
This commit is contained in:
Dav999-v authored and Misa Elizabeth Kai committed 2022-12-31 20:04:56 -08:00
1 parent df76145314
commit 34cb42a19f
1 file changed
+8
+8
View File
@@ -196,6 +196,14 @@ void KeyPoll::Poll(void)
VVV_free(text);
}
}
else if ( evt.key.keysym.sym == SDLK_x &&
keymap[SDLK_LCTRL] )
{
if (SDL_SetClipboardText(keybuffer.c_str()) == 0)
{
keybuffer = "";
}
}
}
break;
}