mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
keys.c: Ignore control characters in Char_Event(), to prevent text input when pressing ctrl-c/ctrl-v.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1115 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
985115faed
commit
77e62b4750
1 changed files with 7 additions and 0 deletions
|
@ -1076,6 +1076,13 @@ void Char_Event (int key)
|
|||
if (key < 32 || key > 126)
|
||||
return;
|
||||
|
||||
#if defined(PLATFORM_OSX) || defined(PLATFORM_MAC)
|
||||
if (keydown[K_COMMAND])
|
||||
return;
|
||||
#endif
|
||||
if (keydown[K_CTRL])
|
||||
return;
|
||||
|
||||
if (key_inputgrab.active)
|
||||
{
|
||||
key_inputgrab.lastchar = key;
|
||||
|
|
Loading…
Reference in a new issue