mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
Merge pull request #2420 from ghostty-org/push-lrummrmpmxwt
core: modifier-only keys do not reset pending key sequences
This commit is contained in:
@ -1685,7 +1685,12 @@ fn maybeHandleBinding(
|
|||||||
// No entry found. If we're not looking at the root set of the
|
// No entry found. If we're not looking at the root set of the
|
||||||
// bindings we need to encode everything up to this point and
|
// bindings we need to encode everything up to this point and
|
||||||
// send to the pty.
|
// send to the pty.
|
||||||
if (self.keyboard.bindings != null) {
|
//
|
||||||
|
// We also ignore modifiers so that nested sequences such as
|
||||||
|
// ctrl+a>ctrl+b>c work.
|
||||||
|
if (self.keyboard.bindings != null and
|
||||||
|
!event.key.modifier())
|
||||||
|
{
|
||||||
// Reset to the root set
|
// Reset to the root set
|
||||||
self.keyboard.bindings = null;
|
self.keyboard.bindings = null;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user