Merge lp:~tnhunt/switchboard-plug-keyboard/printscr-shortcut into lp:~elementary-pantheon/switchboard-plug-keyboard/trunk

Proposed by Tim
Status: Merged
Approved by: Danielle Foré
Approved revision: 489
Merged at revision: 492
Proposed branch: lp:~tnhunt/switchboard-plug-keyboard/printscr-shortcut
Merge into: lp:~elementary-pantheon/switchboard-plug-keyboard/trunk
Diff against target: 12 lines (+1/-1)
1 file modified
src/Pages/Shortcuts/shortcut.vala (+1/-1)
To merge this branch: bzr merge lp:~tnhunt/switchboard-plug-keyboard/printscr-shortcut
Reviewer Review Type Date Requested Status
elementary Pantheon team Pending
Review via email: mp+313441@code.launchpad.net

Commit message

Allow Printscreen key as a shortcut

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Pages/Shortcuts/shortcut.vala'
2--- src/Pages/Shortcuts/shortcut.vala 2015-11-18 22:44:53 +0000
3+++ src/Pages/Shortcuts/shortcut.vala 2016-12-16 15:35:48 +0000
4@@ -83,7 +83,7 @@
5 // validator
6 public bool valid()
7 {
8- if (accel_key == 0 || modifiers == (Gdk.ModifierType) 0)
9+ if (accel_key == 0 || (modifiers == (Gdk.ModifierType) 0 && accel_key != Gdk.Key.Print))
10 return false;
11
12 if (modifiers == Gdk.ModifierType.SHIFT_MASK)

Subscribers

People subscribed via source and target branches

to all changes: