mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
5
.changeset/friendly-mails-lick.md
Normal file
5
.changeset/friendly-mails-lick.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/app': patch
|
||||
---
|
||||
|
||||
Enabled usage of `Home` and `End` keys in input fields
|
||||
@@ -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[]> = {};
|
||||
|
||||
Reference in New Issue
Block a user