GNOME Bugzilla – Bug 348753
Accelerate key does not work in search bar
Last modified: 2013-09-13 00:53:25 UTC
Please describe the problem: In main view, User can not use accelerate key to change the option of search bar or clear the search bar. Steps to reproduce: 1. Lanuch Evolution 2. Goto the mail view 3. Use keyboard to open the option window of search bar, then select "Message Contains" option item. [ALT + somekey] 4. Use keyboard to clear the search bar [ALT + c] Actual results: Step 3 and 4 can not be completed by keyboard, because any key combination will do that. Expected results: Step 3 and 4 can be done by pressing some accelerate key. Does this happen every time? yes Other information:
Created attachment 69652 [details] [review] Patch for this bug
User can select search option menu or clear "button" only by mouse. They should have shortcut key.
alt+down for poping the menu is cool .. But not sure abt using 'alt+c' for clearing the search. currently, 'ctrl+shift+q' clears the search. adding srini on cc list.
Created attachment 69658 [details] [review] Update patch for this bug CTRL+SHIFT+q works for clear button, so ALT+c has been removed from the patch
Looks cool. Does this break UI freeze?
Hi Calum, I have a problem here. There is a gtk-event-box with a image in Evolution, when user press the eventbox, Evolution will popup a gtk-menu. Now, we want to add a shortcut key for the eventbox. What shortcut key should we use?
Shift-F10 is the usual shortcut for activating a popup menu. However, from reading the above comments, it's not clear to me exactly which control/popup menu in Evolution you're talking about. Can you clarify which control will have the keyboard focus when you want this shortcut to be active? It might be that Shift-F10 isn't appropriate in this case.
Created attachment 69951 [details] what the entry look like
Created attachment 69952 [details] the menu jump out when user click the magnifier
Created attachment 69953 [details] the menu jump out when user click the right button
I pasted the screenshot. As you see, the "magnifier" is only a eventbox, not button. So it will not get focus. What we want to do is when the right entry get the focus, there is a shortcut key for the "magnifier". shift + f10 is for the 3rd screenshot's menu already.
hmm... i wonder if alt+arrowdown (which is used in the patch) is allowed by the HIG... http://developer.gnome.org/projects/gup/hig/2.0/input-keyboard.html : "Do not use Alt-key combinations for shortcut keys, as these may conflict with window manager or menu access keys." :-/
The HIG is talking about shortcut keys for menu items there, so you don't need to worry about that :) Ok, well I think Alt-Down is a reasonable choice, as that's the shortcut for dropping down a combo box, and it's also the shortcut that Thunderbird uses in this exact same situation. It would also be nice if the magnifier icon had a little 'down arrow', like the Thunderbird icon has, to give a visual suggestion that there are some dropdown options available.
Thank you Calum. So Johnny, can we commit the boby's patch in comment#4 first? And then we can try to find out some icon which has down arrow.
Add keyword 'usability' and re-assign to the relevant owner.
trying to find out some icon which has a down arrow is now bug 349935.
As I have pointed above, this might break UI freeze. (Adding a new shortcut/key). Please request for a freeze break.
request for freeze break has been sent to the mailing lists by jeff cai.
I believe this line of the patch + if (key_event->state & GDK_MOD1_MASK should be: + if ((key_event->state & gtk_accelerator_get_default_mod_mask ()) == GDK_MOD1_MASK
Created attachment 71283 [details] [review] new patch
Fixed