mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Do nothing if action not performed with flag
This commit is contained in:
@ -1941,10 +1941,16 @@ fn maybeHandleBinding(
|
|||||||
return .closed;
|
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
|
// 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
|
// it, we processed the action but we still want to process our
|
||||||
// encodings, too.
|
// encodings, too.
|
||||||
if (performed and consumed) {
|
if (consumed) {
|
||||||
// If we had queued events, we deinit them since we consumed
|
// If we had queued events, we deinit them since we consumed
|
||||||
self.endKeySequence(.drop, .retain);
|
self.endKeySequence(.drop, .retain);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user