Let program give feedback when an unknown key is pressed

pull/5/head
richelbilderbeek 2013-07-25 12:01:46 +02:00
parent 934d94b326
commit 85e57964a1
1 changed files with 4 additions and 1 deletions

View File

@ -505,7 +505,10 @@ void xte_clickKey ( Display *displayLocation, char *key )
ks = XStringToKeysym( key );
if ( ks == NoSymbol )
return;
{
fprintf( stderr, "Key '%s' is an unknown key\n", key );
return;
}
kc = XKeysymToKeycode( displayLocation, ks );