Bug#913413: [PATCH] Map Shift+Win to Menu

2018-11-13 Thread G. Branden Robinson
At 2018-11-13T10:37:20+0100, Łukasz Stelmach wrote:
> +// Pressing the Shift+Win (left or right, respectively) acts as Menu
> +// while Shift+Win acts as Menu.

I don't understand this comment; it seems tautologous.

Shouldn't it be more like:

// Pressing left or right Win acts as Win, while Shift+Win acts as Menu.

?

-- 
Regards,
Branden


signature.asc
Description: PGP signature


Bug#913413: +patch

2018-11-13 Thread Łukasz Stelmach
Control: tag -1 + patch



Processed: +patch

2018-11-13 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 + patch
Bug #913413 [xkb-data] xkb-data: Map Shift+Win to Menu
Added tag(s) patch.

-- 
913413: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913413
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#913413: [PATCH] Map Shift+Win to Menu

2018-11-13 Thread Łukasz Stelmach
---
 rules/base.o_s.part |  3 +++
 rules/base.xml.in   | 18 ++
 symbols/altwin  | 18 ++
 3 files changed, 39 insertions(+)

Patch created against debian-unstable branch of 
https://salsa.debian.org/xorg-team/data/xkb-data.git

diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index 505f094..1893ba6 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -10,6 +10,9 @@
   altwin:swap_lalt_lwin=   +altwin(swap_lalt_lwin)
   altwin:swap_alt_win  =   +altwin(swap_alt_win)
   altwin:prtsc_rwin=   +altwin(prtsc_rwin)
+  altwin:lwin_menu =   +altwin(lwin_menu)
+  altwin:rwin_menu =   +altwin(rwin_menu)
+  altwin:win_menu  =   +altwin(win_menu)
   grab:debug   =   +srvr_ctrl(grab_debug)
   grp:switch   =   +group(switch)
   grp:lswitch  =   +group(lswitch)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index 3a3a9cd..531755c 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -6789,6 +6789,24 @@
   <_description>Win is mapped to PrtSc and the usual Win
 
   
+  
+
+  altwin:rwin_menu
+  <_description>Map Shift+Right Win to Menu
+
+  
+  
+
+  altwin:lwin_menu
+  <_description>Map Shift+Left Win to Menu
+
+  
+  
+
+  altwin:win_menu
+  <_description>Map Shift+Win (left and right) to Menu
+
+  
 
 
   
diff --git a/symbols/altwin b/symbols/altwin
index 7240ab8..587c215 100644
--- a/symbols/altwin
+++ b/symbols/altwin
@@ -114,3 +114,21 @@ xkb_symbols "prtsc_rwin" {
 replace key  { [ Super_R, Super_R ] };
 modifier_map Mod4 { ,  };
 };
+
+// Pressing the Shift+Win (left or right, respectively) acts as Menu
+// while Shift+Win acts as Menu.
+partial modifier_keys
+xkb_symbols "win_switch" {
+include "altwin(lwin_menu)"
+include "altwin(rwin_menu)"
+};
+
+partial modifier_keys
+xkb_symbols "rwin_menu" {
+key  { [ Super_R, Menu ] };
+};
+
+partial modifier_keys
+xkb_symbols "lwin_menu" {
+key  { [ Super_L, Menu ] };
+};
-- 
2.19.1