Fixed case

fix_onedrive_auth
Laurent Cozic 2020-10-24 12:07:48 +01:00
parent a459174f98
commit de47cff86d
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export const ShortcutRecorder = ({ onSave, onReset, onCancel, onError, initialAc
}
}, [accelerator]);
const handleKeydown = (event: KeyboardEvent<HTMLDivElement>) => {
const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {
event.preventDefault();
const newAccelerator = keymapService.domToElectronAccelerator(event);
@ -64,7 +64,7 @@ export const ShortcutRecorder = ({ onSave, onReset, onCancel, onError, initialAc
<input
value={accelerator}
placeholder={_('Press the shortcut')}
onKeyDown={handleKeydown}
onKeyDown={handleKeyDown}
style={styles.recorderInput}
title={_('Press the shortcut and then press ENTER. Or, press BACKSPACE to clear the shortcut.')}
readOnly