mirror of
https://github.com/bspeice/libcvautomation
synced 2024-12-04 13:58:11 -05:00
Let program give feedback when an unknown key is pressed
This commit is contained in:
parent
934d94b326
commit
85e57964a1
@ -505,7 +505,10 @@ void xte_clickKey ( Display *displayLocation, char *key )
|
||||
|
||||
ks = XStringToKeysym( key );
|
||||
if ( ks == NoSymbol )
|
||||
{
|
||||
fprintf( stderr, "Key '%s' is an unknown key\n", key );
|
||||
return;
|
||||
}
|
||||
|
||||
kc = XKeysymToKeycode( displayLocation, ks );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user