[swell-foop] Do not allow keyboard control with menu open
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [swell-foop] Do not allow keyboard control with menu open
- Date: Tue, 12 May 2020 05:47:21 +0000 (UTC)
commit 554e9c92e7fcc41c784b24455afafc099076f207
Author: Robert Roth <robert roth bee-tf ro>
Date: Tue May 12 08:47:09 2020 +0300
Do not allow keyboard control with menu open
src/window.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/window.vala b/src/window.vala
index 9775412..88731ed 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -339,6 +339,9 @@ private class SwellFoopWindow : ApplicationWindow
private inline bool on_key_pressed (EventControllerKey _key_controller, uint keyval, uint keycode,
Gdk.ModifierType state)
{
+ if (hamburger_button.get_active())
+ return false;
+
switch (keyval)
{
case Gdk.Key.F2:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]