mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix: prevent backspace from accidentally triggering delete modals (#25858)
* fix: prevent backspace from accidentally triggering delete modals * ignore input fields instead of removing shortcut
This commit is contained in:
parent
3870ebc3c6
commit
af1ecaf5cc
2 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ export const getLibraryActions = ($t: MessageFormatter, library: LibraryResponse
|
||||||
color: 'danger',
|
color: 'danger',
|
||||||
onAction: () => handleDeleteLibrary(library),
|
onAction: () => handleDeleteLibrary(library),
|
||||||
shortcuts: { key: 'Backspace' },
|
shortcuts: { key: 'Backspace' },
|
||||||
|
shortcutOptions: { ignoreInputFields: true },
|
||||||
};
|
};
|
||||||
|
|
||||||
const AddFolder: ActionItem = {
|
const AddFolder: ActionItem = {
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,7 @@ export const getUserAdminActions = ($t: MessageFormatter, user: UserAdminRespons
|
||||||
$if: () => get(authUser).id !== user.id && !user.deletedAt,
|
$if: () => get(authUser).id !== user.id && !user.deletedAt,
|
||||||
onAction: () => modalManager.show(UserDeleteConfirmModal, { user }),
|
onAction: () => modalManager.show(UserDeleteConfirmModal, { user }),
|
||||||
shortcuts: { key: 'Backspace' },
|
shortcuts: { key: 'Backspace' },
|
||||||
|
shortcutOptions: { ignoreInputFields: true },
|
||||||
};
|
};
|
||||||
|
|
||||||
const getDeleteDate = (deletedAt: string): Date =>
|
const getDeleteDate = (deletedAt: string): Date =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue