mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-01 22:54:52 +00:00
Handle mode: 'none' in keybindings (#12717)
GitOrigin-RevId: 77d040352b1de2311f663a8b33bd0d20d79a30ae
This commit is contained in:
parent
4bb582bdd8
commit
8537a7a5d0
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,10 @@ export const keybindings = () => {
|
||||||
export const setKeybindings = async (
|
export const setKeybindings = async (
|
||||||
selectedKeybindings = 'default'
|
selectedKeybindings = 'default'
|
||||||
): Promise<TransactionSpec> => {
|
): Promise<TransactionSpec> => {
|
||||||
|
if (selectedKeybindings === 'none') {
|
||||||
|
selectedKeybindings = 'default'
|
||||||
|
}
|
||||||
|
|
||||||
const selectedOption = options.find(
|
const selectedOption = options.find(
|
||||||
option => option.name === selectedKeybindings
|
option => option.name === selectedKeybindings
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue