From fdcc20799fa3e59ac39466e980d38bee7794415c Mon Sep 17 00:00:00 2001 From: tma Date: Mon, 25 Aug 2008 21:15:25 +0000 Subject: * Handle dead keys more gracefully by taking a "best guess" rather than ignoring completely * When activating or deactivating the mouse flush any pending motion events; this should stop the view moving unpredictably in these circumstances * Add keyname completion to "unbind" git-svn-id: svn://svn.icculus.org/quake3/trunk@1459 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/common.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'code/qcommon') diff --git a/code/qcommon/common.c b/code/qcommon/common.c index b35d848..88dab5e 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -3333,6 +3333,14 @@ static void Field_CompleteCommand( char *cmd, Field_CompleteCommand( p, qtrue, qtrue ); } } + else if( !Q_stricmp( baseCmd, "unbind" ) && completionArgument == 2 ) + { + // Skip "unbind " + p = Com_SkipTokens( cmd, 1, " " ); + + if( p > cmd ) + Field_CompleteKeyname( ); + } #endif } } -- cgit v1.2.3