@@ -13,6 +13,9 @@ import { _td, type TranslationKey } from "../shared-components/i18n";
13
13
import { IS_MAC , IS_ELECTRON , Key } from "../shared-components/Keyboard" ;
14
14
import { type IBaseSetting } from "../settings/Settings" ;
15
15
import { type KeyCombo } from "../KeyBindingsManager" ;
16
+ import { DIGITS } from "../shared-components/KeyboardShortcuts" ;
17
+
18
+ export { DIGITS , ALTERNATE_KEY_NAME } from "../shared-components/KeyboardShortcuts" ;
16
19
17
20
export enum KeyBindingAction {
18
21
/** Send a message */
@@ -175,22 +178,6 @@ export enum CategoryName {
175
178
LABS = "Labs" ,
176
179
}
177
180
178
- // Meta-key representing the digits [0-9] often found at the top of standard keyboard layouts
179
- export const DIGITS = "digits" ;
180
-
181
- export const ALTERNATE_KEY_NAME : Record < string , TranslationKey > = {
182
- [ Key . PAGE_UP ] : _td ( "keyboard|page_up" ) ,
183
- [ Key . PAGE_DOWN ] : _td ( "keyboard|page_down" ) ,
184
- [ Key . ESCAPE ] : _td ( "keyboard|escape" ) ,
185
- [ Key . ENTER ] : _td ( "keyboard|enter" ) ,
186
- [ Key . SPACE ] : _td ( "keyboard|space" ) ,
187
- [ Key . HOME ] : _td ( "keyboard|home" ) ,
188
- [ Key . END ] : _td ( "keyboard|end" ) ,
189
- [ Key . ALT ] : _td ( "keyboard|alt" ) ,
190
- [ Key . CONTROL ] : _td ( "keyboard|control" ) ,
191
- [ Key . SHIFT ] : _td ( "keyboard|shift" ) ,
192
- [ DIGITS ] : _td ( "keyboard|number" ) ,
193
- } ;
194
181
export const KEY_ICON : Record < string , string > = {
195
182
[ Key . ARROW_UP ] : "↑" ,
196
183
[ Key . ARROW_DOWN ] : "↓" ,
0 commit comments