Skip to content

Commit

Permalink
removing ALT and CONTROL modified input to produce TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
jinek committed Dec 14, 2024
1 parent e2eab96 commit eb90cc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Consolonia.Core/Infrastructure/ConsoleWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,10 @@ await Dispatcher.UIThread.InvokeAsync(() =>
handled = rawInputEventArgs.Handled;
}, DispatcherPriority.Input);

if (!handled && !char.IsControl(keyChar))
if (!handled
&& !char.IsControl(keyChar)
&& !rawInputModifiers.HasFlag(RawInputModifiers.Alt)
&& !rawInputModifiers.HasFlag(RawInputModifiers.Control))
Dispatcher.UIThread.Post(() =>
{
Input!(new RawTextInputEventArgs(_myKeyboardDevice,
Expand Down

0 comments on commit eb90cc4

Please sign in to comment.