mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[QuickAccent]Add setting to select language (#20798)
* add selection of country langages * Add Greek and Iceland countries * Update src/modules/poweraccent/PowerAccent.Core/PowerAccent.Core.csproj * fix ß in all section * remove greek * improve UI * langage to language * remove GR reference * change 'All' to 'All available' * adding Romanian and Hungarian * Missing characters * Add Italian * Fix translation key Remove GameMode activation * Fix PR build issues * Callback to get if a letter is part of the language * Add additional dlls to installer * Fix new dlls signing * Fix spelling * Add description to language selection Co-authored-by: Damien LEROY <dleroy@veepee.com>
This commit is contained in:
@@ -57,12 +57,17 @@ public class PowerAccent : IDisposable
|
||||
ProcessNextChar(triggerKey);
|
||||
});
|
||||
}));
|
||||
|
||||
_keyboardListener.SetIsLanguageLetterDelegate(new PowerToys.PowerAccentKeyboardService.IsLanguageLetter((LetterKey letterKey, out bool result) =>
|
||||
{
|
||||
result = Languages.GetDefaultLetterKey(letterKey, _settingService.SelectedLang).Length > 0;
|
||||
}));
|
||||
}
|
||||
|
||||
private void ShowToolbar(LetterKey letterKey)
|
||||
{
|
||||
_visible = true;
|
||||
_characters = (WindowsFunctions.IsCapsLockState() || WindowsFunctions.IsShiftState()) ? ToUpper(SettingsService.GetDefaultLetterKey(letterKey)) : SettingsService.GetDefaultLetterKey(letterKey);
|
||||
_characters = (WindowsFunctions.IsCapsLockState() || WindowsFunctions.IsShiftState()) ? ToUpper(Languages.GetDefaultLetterKey(letterKey, _settingService.SelectedLang)) : Languages.GetDefaultLetterKey(letterKey, _settingService.SelectedLang);
|
||||
Task.Delay(_settingService.InputTime).ContinueWith(
|
||||
t =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user