Skip to content

Commit

Permalink
Revert "Change TSFInputControl inputScope to AlphanumericHalfWidth (m…
Browse files Browse the repository at this point in the history
…icrosoft#13028)"

This reverts commit 6e87e0b.
  • Loading branch information
matsui17 committed Sep 20, 2023
1 parent 394b942 commit 3056e0e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cascadia/TerminalControl/TSFInputControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ namespace winrt::Microsoft::Terminal::Control::implementation
// InputPane is manually shown inside of TermControl.
_editContext.InputPaneDisplayPolicy(CoreTextInputPaneDisplayPolicy::Manual);

// Set the input scope to AlphanumericHalfWidth in order to facilitate those CJK input methods to open in English mode by default.
// AlphanumericHalfWidth scope doesn't prevent input method from switching to composition mode, it accepts any character too.
// Besides, Text scope turns on typing intelligence, but that doesn't work in this project.
_editContext.InputScope(CoreTextInputScope::AlphanumericHalfWidth);
// set the input scope to Text because this control is for any text.
_editContext.InputScope(CoreTextInputScope::Text);

_textRequestedRevoker = _editContext.TextRequested(winrt::auto_revoke, { this, &TSFInputControl::_textRequestedHandler });

Expand Down

0 comments on commit 3056e0e

Please sign in to comment.