mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 15:15:59 +00:00
fix - ctrl+s from editor
This commit is contained in:
@@ -66,6 +66,16 @@ export default function InplaceEditor({
|
|||||||
editor.blur();
|
editor.blur();
|
||||||
dispatchInsplaceEditor({ type: 'close', mode: 'enter' });
|
dispatchInsplaceEditor({ type: 'close', mode: 'enter' });
|
||||||
break;
|
break;
|
||||||
|
case keycodes.s:
|
||||||
|
if (event.ctrlKey) {
|
||||||
|
if (isChangedRef.current) {
|
||||||
|
setChangeSet(setChangeSetValue(changeSet, definition, editor.value));
|
||||||
|
isChangedRef.current = false;
|
||||||
|
}
|
||||||
|
event.preventDefault();
|
||||||
|
dispatchInsplaceEditor({ type: 'close', mode: 'save' });
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user