mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03: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:
@@ -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 =>
|
||||||
|
|||||||
Reference in New Issue
Block a user