Enable usage of Home and End keys in input fields (#19273)

Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
GitStart
2023-07-28 02:34:58 +01:00
committed by GitHub
parent ce099a0337
commit 6f004f8428
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@directus/app': patch
---
Enabled usage of `Home` and `End` keys in input fields

View File

@@ -7,7 +7,7 @@ export const keyMap: Record<string, string> = {
Command: 'meta',
};
export const systemKeys = ['meta', 'shift', 'alt', 'backspace', 'delete', 'tab', 'capslock', 'enter'];
export const systemKeys = ['meta', 'shift', 'alt', 'backspace', 'delete', 'tab', 'capslock', 'enter', 'home', 'end'];
const keysDown: Set<string> = new Set([]);
const handlers: Record<string, ShortcutHandler[]> = {};