aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-21 17:33:33 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-21 19:40:03 +0200
commit72ff799b774500d38b1835761738eb52eb972944 (patch)
treedbfa7f5ad3d39aaaf90a020c80820054ceccdb24 /src
parent88523096d08e7bd400ce0b6f53857a2afe1647bc (diff)
downloadarctica-greeter-72ff799b774500d38b1835761738eb52eb972944.tar.gz
arctica-greeter-72ff799b774500d38b1835761738eb52eb972944.tar.bz2
arctica-greeter-72ff799b774500d38b1835761738eb52eb972944.zip
Support alt+super+s for enabling screen reader to match Unity shell keybinding.
Diffstat (limited to 'src')
-rw-r--r--src/menubar.vala1
-rw-r--r--src/prompt-box.vala3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/menubar.vala b/src/menubar.vala
index 128be17..2af4f2d 100644
--- a/src/menubar.vala
+++ b/src/menubar.vala
@@ -231,6 +231,7 @@ public class MenuBar : Gtk.MenuBar
var item = new Gtk.CheckMenuItem.with_label (_("Screen Reader"));
item.toggled.connect (screen_reader_toggled_cb);
item.add_accelerator ("activate", accel_group, Gdk.Key.s, Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE);
+ item.add_accelerator ("activate", accel_group, Gdk.Key.s, Gdk.ModifierType.SUPER_MASK | Gdk.ModifierType.MOD1_MASK, Gtk.AccelFlags.VISIBLE);
item.show ();
submenu.append (item);
item.set_active (UGSettings.get_boolean (UGSettings.KEY_SCREEN_READER));
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index 50c46d1..075a6ba 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -283,6 +283,9 @@ public class PromptBox : FadableBox
base.get_preferred_height (out min, out nat);
min = round_to_grid (min + GreeterList.BORDER * 2) - GreeterList.BORDER * 2;
nat = round_to_grid (nat + GreeterList.BORDER * 2) - GreeterList.BORDER * 2;
+
+ if (position <= -1 || position >= 1)
+ min = nat = grid_size;
}
public void set_zone (Gtk.Widget zone)