Adds hotkeys to modal

This commit is contained in:
psychedelicious 2022-10-06 18:34:20 +08:00 committed by blessedcoolant
parent 58d73f5cae
commit 461e662644

View File

@ -51,6 +51,16 @@ export default function HotkeysModal({ children }: HotkeysModalProps) {
desc: 'Focus the prompt input area',
hotkey: 'Alt+A',
},
{
title: 'Previous Image',
desc: 'Display the previous image in the gallery',
hotkey: 'Arrow left',
},
{
title: 'Next Image',
desc: 'Display the next image in the gallery',
hotkey: 'Arrow right',
},
];
const renderHotkeyModalItems = () => {