aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClement Lefebvre <clement.lefebvre@linuxmint.com>2023-02-06 10:10:09 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 12:08:33 +0100
commit74ad7aca037b60b3d9aa7bf089e0ff9e55e2b72b (patch)
treef4643243221b023b1c60283ea20954b09a41c8ed /src
parent2577b8a7f3c9e95749665ee48f28d45cbc02ac9c (diff)
downloadarctica-greeter-74ad7aca037b60b3d9aa7bf089e0ff9e55e2b72b.tar.gz
arctica-greeter-74ad7aca037b60b3d9aa7bf089e0ff9e55e2b72b.tar.bz2
arctica-greeter-74ad7aca037b60b3d9aa7bf089e0ff9e55e2b72b.zip
sessions: Close dialog on Escape.
Ported from Slick Greeter ported by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/aaa10cc2a080cf5fecc693bde7ba473ad87bbe96
Diffstat (limited to 'src')
-rw-r--r--src/main-window.vala10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main-window.vala b/src/main-window.vala
index d7fe6f0..a44ede0 100644
--- a/src/main-window.vala
+++ b/src/main-window.vala
@@ -378,6 +378,16 @@ public class MainWindow : Gtk.Window
}
}
}
+ else if (stack.top () is SessionList) {
+ // Session list is open
+ switch (event.keyval) {
+ case Gdk.Key.Escape:
+ case Gdk.Key.Left:
+ case Gdk.Key.KP_Left:
+ pop_list();
+ return true;
+ }
+ }
var greeter = new ArcticaGreeter ();
switch (event.keyval)