mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[QuickAccent]Add multiplication and division signs (#25790)
* Add multiplication and division signs to Languages.cs Adds multiplication (U+00D7, U+22C5) and division (U+00F7) signs to Languages.cs * Add slash and asterisk to KeyboardListener.h * Add slash, asterisk to KeyboardListener.idl * Update Languages.cs * VK_ASTERISK -> VK_MULTIPLY KeyboardListener.idl * VK_ASTERISK -> VK_MULTIPLY Languages.cs * VK_ASTERISK -> VK_MULTIPLY KeyboardListener.h * Add VK_DIVIDE to Languages.cs * Add VK_DIVIDE to KeyboardListener.h * Add VK_DIVIDE to KeyboardListener.idl * avoid protected names Languages.cs * avoid protected names KeyboardListener.h * avoid protected names KeyboardListener.idl
This commit is contained in:
committed by
GitHub
parent
792a77437e
commit
a012d591c2
@@ -116,12 +116,15 @@ namespace PowerAccent.Core
|
||||
LetterKey.VK_T => new string[] { "ţ", "ť", "ț", "ṫ", "ŧ", "θ", "τ", "þ" },
|
||||
LetterKey.VK_U => new string[] { "û", "ú", "ü", "ŭ", "ű", "ù", "ů", "ū", "ų", "ǔ", "υ", "ǖ", "ǘ", "ǚ", "ǜ" },
|
||||
LetterKey.VK_W => new string[] { "ẇ", "ŵ", "₩" },
|
||||
LetterKey.VK_X => new string[] { "ẋ", "ξ" },
|
||||
LetterKey.VK_X => new string[] { "ẋ", "ξ", "×" },
|
||||
LetterKey.VK_Y => new string[] { "ÿ", "ŷ", "ý", "ẏ" },
|
||||
LetterKey.VK_Z => new string[] { "ź", "ž", "ż", "ʒ", "ǯ", "ζ" },
|
||||
LetterKey.VK_COMMA => new string[] { "¿", "¡", "∙", "₋", "⁻", "–", "≤", "≥", "≠", "≈", "≙", "±", "₊", "⁺" },
|
||||
LetterKey.VK_PERIOD => new string[] { "\u0300", "\u0301", "\u0302", "\u0303", "\u0304", "\u0308", "\u030C" },
|
||||
LetterKey.VK_MINUS => new string[] { "~", "‐", "‑", "‒", "–", "—", "―", "⁓", "−", "⸺", "⸻" },
|
||||
LetterKey.VK_SLASH_ => new string[] { "÷" },
|
||||
LetterKey.VK_DIVIDE_ => new string[] { "÷" },
|
||||
LetterKey.VK_MULTIPLY_ => new string[] { "×", "⋅" },
|
||||
_ => Array.Empty<string>(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -100,7 +100,10 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
|
||||
LetterKey::VK_Z,
|
||||
LetterKey::VK_COMMA,
|
||||
LetterKey::VK_PERIOD,
|
||||
LetterKey::VK_MINUS };
|
||||
LetterKey::VK_MINUS,
|
||||
LetterKey::VK_SLASH_,
|
||||
LetterKey::VK_DIVIDE_,
|
||||
LetterKey::VK_MULTIPLY_, };
|
||||
LetterKey letterPressed{};
|
||||
|
||||
static inline const std::vector<TriggerKey> triggers = { TriggerKey::Right, TriggerKey::Left, TriggerKey::Space };
|
||||
|
||||
@@ -43,7 +43,10 @@ namespace PowerToys
|
||||
VK_Z = 0x5A,
|
||||
VK_COMMA = 0xBC,
|
||||
VK_PERIOD = 0xBE,
|
||||
VK_MINUS = 0xBD
|
||||
VK_MINUS = 0xBD,
|
||||
VK_MULTIPLY_ = 0x6A,
|
||||
VK_SLASH_ = 0xBF,
|
||||
VK_DIVIDE_ = 0x6F
|
||||
};
|
||||
|
||||
enum TriggerKey
|
||||
|
||||
Reference in New Issue
Block a user