mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
[QuickAccent]Added support for Norwegian letters (#23487)
* [QuickAccent]Added support for Norwegian letters * Add language to Settings
This commit is contained in:
@@ -29,6 +29,7 @@ namespace PowerAccent.Core
|
||||
MK,
|
||||
MI,
|
||||
NL,
|
||||
NO,
|
||||
PI,
|
||||
PL,
|
||||
PT,
|
||||
@@ -65,6 +66,7 @@ namespace PowerAccent.Core
|
||||
Language.MK => GetDefaultLetterKeyMK(letter), // Macedonian
|
||||
Language.MI => GetDefaultLetterKeyMI(letter), // Maori
|
||||
Language.NL => GetDefaultLetterKeyNL(letter), // Dutch
|
||||
Language.NO => GetDefaultLetterKeyNO(letter), // Norwegian
|
||||
Language.PI => GetDefaultLetterKeyPI(letter), // Pinyin
|
||||
Language.PL => GetDefaultLetterKeyPL(letter), // Polish
|
||||
Language.PT => GetDefaultLetterKeyPT(letter), // Portuguese
|
||||
@@ -583,5 +585,18 @@ namespace PowerAccent.Core
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
|
||||
// Norwegian
|
||||
private static string[] GetDefaultLetterKeyNO(LetterKey letter)
|
||||
{
|
||||
return letter switch
|
||||
{
|
||||
LetterKey.VK_A => new string[] { "å", "æ" },
|
||||
LetterKey.VK_E => new string[] { "€" },
|
||||
LetterKey.VK_O => new string[] { "ø" },
|
||||
LetterKey.VK_S => new string[] { "$" },
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user