bindings: Add 'W' as alias for modifier 4

This commit is contained in:
Kim Woelders 2020-01-23 17:16:48 +01:00
parent d4278e802e
commit 4e74e31d23
2 changed files with 4 additions and 4 deletions

View File

@ -15,9 +15,10 @@
# <Modifiers>: One or more of # <Modifiers>: One or more of
# - None # - None
# * Any # * Any
# A Alt # A Alt (=modifier 1)
# C Ctrl # C Ctrl
# S Shift # S Shift
# W Windows (=modifier 4)
# 1-5 Modifier 1-5 # 1-5 Modifier 1-5
# #
# <Button>: # <Button>:

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2004-2019 Kim Woelders * Copyright (C) 2004-2020 Kim Woelders
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to * of this software and associated documentation files (the "Software"), to
@ -546,8 +546,6 @@ ActionDecode(const char *line)
modifiers |= ShiftMask; modifiers |= ShiftMask;
break; break;
case 'A': case 'A':
modifiers |= Mod1Mask;
break;
case '1': case '1':
modifiers |= Mod1Mask; modifiers |= Mod1Mask;
break; break;
@ -557,6 +555,7 @@ ActionDecode(const char *line)
case '3': case '3':
modifiers |= Mod3Mask; modifiers |= Mod3Mask;
break; break;
case 'W':
case '4': case '4':
modifiers |= Mod4Mask; modifiers |= Mod4Mask;
break; break;