]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
keys: do not send the text event of the toggleconsole bind to the console.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Nov 2016 18:20:07 +0000 (18:20 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 29 Nov 2016 18:32:50 +0000 (19:32 +0100)
commitc93ec66dc54190ef125977180c15fca811c2144c
tree771a886fb6ef684ed3cc95a6806569ae8978485b
parent161fc27bdf0eb7e6044f82a21b31e07019d5815c
keys: do not send the text event of the toggleconsole bind to the console.

This only affects SDL2's event handling, which sends events in the following order:

(keycode, 0, true)
(0, charcode, true)
(0, charcode, false)
(keycode, 0, false)

The input destination is toggled on the first event, and the console then would
receive the charcode events. Binds work differently though - their action is
queued into the console buffer, and executed at the end of the frame!

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12305 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b046f98ffbc506e32c13c46725e75a92eb861cef
keys.c