CTRL+U for uploads (#1423)
This commit is contained in:
parent
2b5a1cbfe9
commit
18fbd17025
|
@ -255,6 +255,11 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, onKe
|
|||
e.preventDefault()
|
||||
insertMarkdownItalicFormatting(innerRef.current, helpers.setValue, setSelectionRange)
|
||||
}
|
||||
if (e.key === 'u') {
|
||||
// some browsers might use CTRL+U to do something else so prevent that behavior too
|
||||
e.preventDefault()
|
||||
imageUploadRef.current?.click()
|
||||
}
|
||||
if (e.key === 'Tab' && e.altKey) {
|
||||
e.preventDefault()
|
||||
insertMarkdownTabFormatting(innerRef.current, helpers.setValue, setSelectionRange)
|
||||
|
|
Loading…
Reference in New Issue