Skip to content

Commit

Permalink
[QuickAccent]Added ` (backtick) and ~ (tilde) to VK_OEM_5 (#20333)
Browse files Browse the repository at this point in the history
  • Loading branch information
xanatos committed Feb 4, 2025
1 parent 483b21f commit 48248a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/modules/poweraccent/PowerAccent.Core/Languages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ private static string[] GetDefaultLetterKeySPECIAL(LetterKey letter)
LetterKey.VK_DIVIDE_ => new[] { "÷", "√" },
LetterKey.VK_MULTIPLY_ => new[] { "×", "⋅" },
LetterKey.VK_PLUS => new[] { "≤", "≥", "≠", "≈", "≙", "⊕", "⊗", "∓", "≅", "≡" },
LetterKey.VK_BACKSLASH => new[] { "`", "~" },
_ => Array.Empty<string>(),
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ namespace winrt::PowerToys::PowerAccentKeyboardService::implementation
LetterKey::VK_MINUS,
LetterKey::VK_SLASH_,
LetterKey::VK_DIVIDE_,
LetterKey::VK_MULTIPLY_, };
LetterKey::VK_MULTIPLY_,
LetterKey::VK_BACKSLASH, };
LetterKey letterPressed{};

static inline const std::vector<TriggerKey> triggers = { TriggerKey::Right, TriggerKey::Left, TriggerKey::Space };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ namespace PowerToys
VK_MINUS = 0xBD,
VK_MULTIPLY_ = 0x6A,
VK_SLASH_ = 0xBF,
VK_DIVIDE_ = 0x6F
VK_DIVIDE_ = 0x6F,
VK_BACKSLASH = 0xDC
};

enum TriggerKey
Expand Down

0 comments on commit 48248a4

Please sign in to comment.