Skip to content

Commit

Permalink
Fix key bindings and search prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Feb 21, 2024
1 parent daa1d63 commit 0428d27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
<li>Add SGRSAVE and SGRRESTORE VT sequences to save and restore SGR state (They intentionally conflict with XTPUSHSGR and XTPOPSGR)</li>
<li>Fixes corruption of sixel image on high resolution (#1049)</li>
<li>Fixes bad wording of OS/X to macOS (#1462)</li>
<li>Fixed key bindings and search prompt collision (#1472)</li>
</ul>
</description>
</release>
Expand Down
4 changes: 3 additions & 1 deletion src/contour/TerminalSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,10 @@ void TerminalSession::sendCharEvent(

if (eventType != KeyboardEventType::Release)
{
// find if action exist for the given key, and ignore if editing search prompt
if (auto const* actions =
config::apply(_config.inputMappings.value().charMappings, value, modifiers, matchModeFlags()))
config::apply(_config.inputMappings.value().charMappings, value, modifiers, matchModeFlags());
actions && !_terminal.inputHandler().isEditingSearch())
{
executeAllActions(*actions);
return;
Expand Down

0 comments on commit 0428d27

Please sign in to comment.