GNOME Bugzilla – Bug 348733
keyboard shortcuts interfere when entering comments
Last modified: 2006-08-11 16:38:09 UTC
When entering comments to a photo, keys [ and ] rotate the photo, making it impossible to enter a comment containing these symbols. Worse, this happens regrdless of keyboard laypout used. For example, I use Russian typewriter layout, in which key [ generates Cyrillic letter "х". Thus, this bug makes it impossible to enter comments containing this letter. I think no one would really miss it if all kbd shortcuts were disabled when in comment editing mode
*** Bug 348772 has been marked as a duplicate of this bug. ***
Created attachment 69688 [details] [review] small fix This patch removes the ] and [ accelerator keys from the glade file and implements them in the HandleIconViewPressEvent and HandleIconViewPressEvent methods. Like that you can enter the special characters in the description field without a rotation taking effect. The disadvantage is that the accelerator keys are no longer visible in the menu, which makes them less discoverable (or can this be done without an actual key binding?). Another approach would be to alter the accelerators.
I wrote and committed a patch for this that just checks if the currently focused widget is an Entry (and the current event a key press) before handling the rotations. Thanks guys.