Skip to content

Commit

Permalink
Fixed InputHook to respect +S option for Backspace when acting as undo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Mar 26, 2024
1 parent e155a3b commit c1c8d3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/hook.cpp
Expand Up @@ -2862,7 +2862,8 @@ bool CollectInputHook(KBDLLHOOKSTRUCT &aEvent, const vk_type aVK, const sc_type
{
if (input->BufferLength)
input->Buffer[--input->BufferLength] = '\0';
visible = input->VisibleText; // Override VisibleNonText.
if (!(key_flags & INPUT_KEY_VISIBILITY_MASK)) // If +S and +V haven't been applied to Backspace...
visible = input->VisibleText; // Override VisibleNonText.
// Fall through to the check below in case this {BS} completed a dead key sequence.
}

Expand Down

0 comments on commit c1c8d3a

Please sign in to comment.