From 02b546e4c58833721921273e8bf482251cd91a98 Mon Sep 17 00:00:00 2001 From: tma Date: Thu, 28 Aug 2008 22:05:34 +0000 Subject: * Revert 'Handle dead keys more gracefully by taking a "best guess" rather than ignoring completely' from r1459; it can't ever work acceptably, especially on azerty/qwertz layouts * Make the ordering of the output from in_keyboardDebug more sensible * Add cl_consoleKeys cvar, a space delimited list of key names or characters that toggle the console git-svn-id: svn://svn.icculus.org/quake3/trunk@1461 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_keys.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'code/client/cl_keys.c') diff --git a/code/client/cl_keys.c b/code/client/cl_keys.c index b7fb2fa..fea1b74 100644 --- a/code/client/cl_keys.c +++ b/code/client/cl_keys.c @@ -1172,7 +1172,7 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) { } // console key is hardcoded, so the user can never unbind it - if (key == '`' || key == '~' || + if (key == K_CONSOLE || ( key == K_ESCAPE && keys[K_SHIFT].down ) ) { if (!down) { return; @@ -1315,11 +1315,6 @@ Normal keyboard characters, already shifted / capslocked / etc =================== */ void CL_CharEvent( int key ) { - // the console key should never be used as a char - if ( key == '`' || key == '~' ) { - return; - } - // delete is not a printable character and is // otherwise handled by Field_KeyDownEvent if ( key == 127 ) { -- cgit v1.2.3