Skip to content

Commit

Permalink
Rephrase some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rustn00b committed Jan 16, 2025
1 parent 3ac6a66 commit f2e929d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f2e929d

Please sign in to comment.