mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
780c35eabe
Closes: BS-2964
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
import { KeymapExtension } from '@blocksuite/std';
|
|
|
|
export const fallbackKeymap = KeymapExtension(() => {
|
|
return {
|
|
Tab: ctx => {
|
|
const event = ctx.get('defaultState').event;
|
|
event.stopPropagation();
|
|
event.preventDefault();
|
|
},
|
|
'Shift-Tab': ctx => {
|
|
const event = ctx.get('defaultState').event;
|
|
event.stopPropagation();
|
|
event.preventDefault();
|
|
},
|
|
};
|
|
});
|