Do nothing if action not performed with flag

pull/4345/head
Ethan Conneely 2025-01-02 01:14:47 +00:00
parent 98aa046a4d
commit f38d1585e8
No known key found for this signature in database
GPG Key ID: 8477D626037D7BA0
1 changed files with 7 additions and 1 deletions

View File

@ -1941,10 +1941,16 @@ fn maybeHandleBinding(
return .closed;
}
// If we have the performable flag and the
// action was not performed do nothing at all
if (leaf.flags.performable and !performed) {
return null;
}
// If we consume this event, then we are done. If we don't consume
// it, we processed the action but we still want to process our
// encodings, too.
if (performed and consumed) {
if (consumed) {
// If we had queued events, we deinit them since we consumed
self.endKeySequence(.drop, .retain);