command/map: remove references to locked mods

These have never created functional mappings as far as I'm aware.
This commit is contained in:
Isaac Freund 2024-02-19 18:21:50 +01:00
parent 6692656c00
commit b34e1c6ebd
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
2 changed files with 1 additions and 5 deletions

View File

@ -162,17 +162,15 @@ a screenlocker). It cannot be entered or exited manually.
The following modifiers are available for use in mappings: The following modifiers are available for use in mappings:
- Shift - Shift
- Lock
- Control - Control
- Mod1 (Alt) - Mod1 (Alt)
- Mod2
- Mod3 - Mod3
- Mod4 (Super) - Mod4 (Super)
- Mod5 - Mod5
- None - None
Alt and Super are aliases for Mod1 and Mod4 respectively. None allows creating Alt and Super are aliases for Mod1 and Mod4 respectively. None allows creating
a mapping without modifiers a mapping without modifiers.
Keys are specified by their XKB keysym name. See Keys are specified by their XKB keysym name. See
_/usr/include/xkbcommon/xkbcommon-keysyms.h_ for the complete list. _/usr/include/xkbcommon/xkbcommon-keysyms.h_ for the complete list.

View File

@ -287,11 +287,9 @@ fn parseModifiers(modifiers_str: []const u8, out: *?[]const u8) !wlr.Keyboard.Mo
if (mem.eql(u8, mod_name, "None")) continue; if (mem.eql(u8, mod_name, "None")) continue;
inline for ([_]struct { name: []const u8, field_name: []const u8 }{ inline for ([_]struct { name: []const u8, field_name: []const u8 }{
.{ .name = "Shift", .field_name = "shift" }, .{ .name = "Shift", .field_name = "shift" },
.{ .name = "Lock", .field_name = "caps" },
.{ .name = "Control", .field_name = "ctrl" }, .{ .name = "Control", .field_name = "ctrl" },
.{ .name = "Mod1", .field_name = "alt" }, .{ .name = "Mod1", .field_name = "alt" },
.{ .name = "Alt", .field_name = "alt" }, .{ .name = "Alt", .field_name = "alt" },
.{ .name = "Mod2", .field_name = "mod2" },
.{ .name = "Mod3", .field_name = "mod3" }, .{ .name = "Mod3", .field_name = "mod3" },
.{ .name = "Mod4", .field_name = "logo" }, .{ .name = "Mod4", .field_name = "logo" },
.{ .name = "Super", .field_name = "logo" }, .{ .name = "Super", .field_name = "logo" },