Fixes #170318
2006-08-24 Andre Klapper <a9016009@gmx.de> Fixes #170318 * gnome-settings-multimedia-keys.c (init_kbd): avoid grabbing all the keyboard when the key code cannot be retrieved.
This commit is contained in:
parent
5d184d6893
commit
6ea13022e9
2 changed files with 16 additions and 0 deletions
|
@ -433,6 +433,15 @@ init_kbd (Acme *acme)
|
|||
g_free (key);
|
||||
continue;
|
||||
}
|
||||
/*avoid grabbing all the keyboard when KeyCode cannot be retrieved */
|
||||
if (key->keycode == AnyKey)
|
||||
{
|
||||
g_warning ("The shortcut key \"%s\" cannot be found on the current system, ignoring the binding", tmp);
|
||||
g_free (tmp);
|
||||
g_free (key);
|
||||
continue;
|
||||
}
|
||||
|
||||
g_free (tmp);
|
||||
|
||||
keys[i].key = key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue