command/map: use flags.zig, cleanup

This commit is contained in:
Isaac Freund
2022-12-28 21:56:42 +01:00
parent eed7d94557
commit 2be9ac05d6
3 changed files with 64 additions and 87 deletions

View File

@ -395,7 +395,7 @@ pub fn handleMapping(
var handled = false;
for (modes.items[self.mode_id].mappings.items) |*mapping| {
if (mapping.match(keycode, modifiers, released, xkb_state)) {
if (mapping.repeat) {
if (mapping.options.repeat) {
self.repeating_mapping = mapping;
self.mapping_repeat_timer.timerUpdate(server.config.repeat_delay) catch {
log.err("failed to update mapping repeat timer", .{});