GNOME Bugzilla – Bug 671006
keygrab: don't translate Alt+Print to SysRq
Last modified: 2012-03-22 05:27:16 UTC
This fixes window screenshots not working properly. See commit message for the rationale.
Created attachment 208632 [details] [review] keygrab: don't translate Alt+Print to SysRq We want to use Alt+Print for screenshot keybindings, so we have to avoid translating it into SysRq, since that's what the keymap would dictate. After talking with Owen, it sounds like doing this generically would be a lot of work and quite hairy code, so hardcoding this should be OK.
Created attachment 208633 [details] [review] cellrendereraccel: don't translate Alt+Print to SysRq We also need this similar patch to GtkCellRendererAccel to have gnome-control-center report Alt+Print in the Shortcuts panel when trying to grab the key.
Review of attachment 208633 [details] [review]: Looks good to me. ::: gtk/gtkcellrendereraccel.c @@ +457,3 @@ + { + /* HACK: we don't want to use SysRq as a keybinding, so we avoid + * its translation entirely. This has less details than the comment in g-s-d.
Wouldn't it be better to do this inside _gtk_translate_keyboard_accel_state ?
Review of attachment 208633 [details] [review]: committed