From f2e929d78e86d403eeb17e139fb37c471bb17b23 Mon Sep 17 00:00:00 2001 From: rustN00b Date: Thu, 16 Jan 2025 12:47:42 +0100 Subject: [PATCH] Rephrase some comments --- src/input/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index 6a7d9ceea..2d3782a0e 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -381,9 +381,9 @@ impl State { } } - // If the Mod and the ESC key are pressed and there is an - // active window-mru, cancel it and refocus the initial - // window (first in the list) + // If the ESC key was pressed with the Alt modifier and + // there is an active window-mru, cancel it and refocus the + // initial window (first in the list) if pressed && !this.niri.is_locked() && matches!(raw, Keysym::Alt_L | Keysym::Alt_R) @@ -2977,8 +2977,8 @@ fn find_configured_bind( modifiers |= Modifiers::COMPOSITOR; } - // iterate through configured bindings to find a match, and - // if none were found, also check `PRESET_BINDINGS` + // iterate through configured bindings looking for a match, and + // then check in `PRESET_BINDINGS` if none were found for bind in bindings.0.iter().chain(PRESET_BINDINGS.iter()) { if bind.key.trigger != trigger { continue;