Fixes #35057 Release Notes: - Fix input being sent to editor/terminal when pending keystrokes are resolved