Merge lp:~evfool/switchboard/lp1191491-altleft into lp:~elementary-pantheon/switchboard/switchboard

Proposed by Robert Roth
Status: Merged
Approved by: Danielle Foré
Approved revision: 515
Merged at revision: 518
Proposed branch: lp:~evfool/switchboard/lp1191491-altleft
Merge into: lp:~elementary-pantheon/switchboard/switchboard
Diff against target: 16 lines (+6/-1)
1 file modified
src/Switchboard.vala (+6/-1)
To merge this branch: bzr merge lp:~evfool/switchboard/lp1191491-altleft
Reviewer Review Type Date Requested Status
Artem Anufrij (community) code style Approve
elementary Pantheon team Pending
Review via email: mp+240795@code.launchpad.net

Commit message

Added Alt+Left as a shortcut to go back to the All settings view (lp:1191491).

Description of the change

Added Alt+Left as a shortcut to go back to the All settings view.

To post a comment you must log in.
Revision history for this message
Artem Anufrij (artem-anufrij) wrote :

Code style

review: Approve (code style)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Switchboard.vala'
2--- src/Switchboard.vala 2014-09-25 09:41:29 +0000
3+++ src/Switchboard.vala 2014-11-05 23:12:13 +0000
4@@ -394,7 +394,12 @@
5
6 // Focus typing to the search bar
7 main_window.key_press_event.connect ((event) => {
8- // Don't focus if it is a modifier or if search_box is already focused.
9+ // alt+left should go back to all settings
10+ if ((event.state | Gdk.ModifierType.MOD1_MASK) != 0 && event.keyval == Gdk.Key.Left) {
11+ navigation_button.clicked ();
12+ }
13+
14+ // Don't focus if it is a modifier or if search_box is already focused
15 if ((event.is_modifier == 0) && !search_box.has_focus)
16 search_box.grab_focus ();
17

Subscribers

People subscribed via source and target branches

to all changes: