mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[QuickAccent] Support Chinese Phonetic Alphabet(Pinyin) and other unicode characters (#21618)
* #21300-0 * 注释无关代码 * 修改为多行注释,将GetDefaultLetterKeyPI返回值类型修改为string[] * 重写ToUpper函数 * 更改_characters变量类型为string[] * 重写Insert函数 * 修改OnSelectCharacter类型为Action<int, string> * 修改OnChangeDisplay类型为Action<bool, string[]> * 修改PowerAccent_OnSelectionCharacter和PowerAccent_OnChangeDisplay函数 * 清理无用注释 * #21300-1 * 将修改应用到其他语言 * Removed previous method and change another refence of previous method. * PowerAccent-21300: sort Pinyin languages
This commit is contained in:
@@ -28,12 +28,12 @@ public partial class Selector : Window, IDisposable
|
||||
this.Visibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
private void PowerAccent_OnSelectionCharacter(int index, char character)
|
||||
private void PowerAccent_OnSelectionCharacter(int index, string character)
|
||||
{
|
||||
characters.SelectedIndex = index;
|
||||
}
|
||||
|
||||
private void PowerAccent_OnChangeDisplay(bool isActive, char[] chars)
|
||||
private void PowerAccent_OnChangeDisplay(bool isActive, string[] chars)
|
||||
{
|
||||
this.Visibility = isActive ? Visibility.Visible : Visibility.Collapsed;
|
||||
if (isActive)
|
||||
|
||||
Reference in New Issue
Block a user