filter out CapsLock modifiers since it's otherwise possible to set the

2007-02-03  Jens Granseuer  <jensgr@gmx.net>

	* gnome-keybinding-properties.c: (accel_edited_callback): filter
	out CapsLock modifiers since it's otherwise possible to set the
	same accel for several actions (fixes #350424)

svn path=/trunk/; revision=7232
This commit is contained in:
Jens Granseuer 2007-02-02 23:22:15 +00:00 committed by Jens Granseuer
parent 1f8280c0a7
commit 09076c4e27
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-02-03 Jens Granseuer <jensgr@gmx.net>
* gnome-keybinding-properties.c: (accel_edited_callback): filter
out CapsLock modifiers since it's otherwise possible to set the
same accel for several actions (fixes #350424)
2007-02-02 Jens Granseuer <jensgr@gmx.net>
* gnome-keybinding-properties.c: (accel_edited_callback): blacklist

View file

@ -636,6 +636,9 @@ accel_edited_callback (GtkCellRendererText *cell,
if (key_entry == NULL)
return;
/* CapsLock isn't supported as a keybinding modifier, so keep it from confusing us */
mask &= ~EGG_VIRTUAL_LOCK_MASK;
model = get_real_model (view);
tmp_key.model = model;
tmp_key.keyval = keyval;