Browse Source

docs: clarify supported accelerator punctuation (#38756)

doc: clarify supported accelerator punctuation

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 1 year ago
parent
commit
a55410576a
2 changed files with 1 additions and 4 deletions
  1. 1 1
      docs/api/accelerator.md
  2. 0 3
      shell/common/keyboard_util.cc

+ 1 - 1
docs/api/accelerator.md

@@ -55,7 +55,7 @@ The `Super` (or `Meta`) key is mapped to the `Windows` key on Windows and Linux
 * `0` to `9`
 * `A` to `Z`
 * `F1` to `F24`
-* Punctuation like `~`, `!`, `@`, `#`, `$`, etc.
+* Various Punctuation: `)`, `!`, `@`, `#`, `$`, `%`, `^`, `&`, `*`, `(`, `:`, `;`, `:`, `+`, `=`, `<`, `,`, `_`, `-`, `>`, `.`, `?`, `/`, `~`, `` ` ``, `{`, `]`, `[`, `|`, `\`, `}`, `"`
 * `Plus`
 * `Space`
 * `Tab`

+ 0 - 3
shell/common/keyboard_util.cc

@@ -207,7 +207,6 @@ ui::KeyboardCode KeyboardCodeFromCharCode(char16_t c, bool* shifted) {
       return ui::VKEY_Y;
     case 'z':
       return ui::VKEY_Z;
-
     case ')':
       *shifted = true;
       [[fallthrough]];
@@ -258,7 +257,6 @@ ui::KeyboardCode KeyboardCodeFromCharCode(char16_t c, bool* shifted) {
       [[fallthrough]];
     case '9':
       return ui::VKEY_9;
-
     case ':':
       *shifted = true;
       [[fallthrough]];
@@ -314,7 +312,6 @@ ui::KeyboardCode KeyboardCodeFromCharCode(char16_t c, bool* shifted) {
       [[fallthrough]];
     case '\'':
       return ui::VKEY_OEM_7;
-
     default:
       return ui::VKEY_UNKNOWN;
   }