Merge lp:~jaapz-b/switchboard/fix-1014707 into lp:~elementary-pantheon/switchboard/switchboard
Proposed by
Jaap Broekhuizen
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Mario Guerriero | ||||
Approved revision: | 343 | ||||
Merged at revision: | 344 | ||||
Proposed branch: | lp:~jaapz-b/switchboard/fix-1014707 | ||||
Merge into: | lp:~elementary-pantheon/switchboard/switchboard | ||||
Diff against target: |
19 lines (+9/-0) 1 file modified
Switchboard/switchboard-app.vala (+9/-0) |
||||
To merge this branch: | bzr merge lp:~jaapz-b/switchboard/fix-1014707 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Victor Martinez (community) | Needs Fixing | ||
Review via email: mp+135944@code.launchpad.net |
To post a comment you must log in.
This code also grabs key presses when modifier keys are active, which means that using desktop shortcuts while the Switchboard's window is active will also move focus to the search entry. I'd suggest doing the following:
var modifiers = Gtk.accelerator _get_default_ mod_mask ();
bool modifiers_active = (event.state & modifiers) != 0;
if (!modifiers_active) {
[... run proposed code ...]
}
Diff line 10 could be replaced by "search_ box.has_ focus"
The rest looks perfect to me.