mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
13 lines
228 B
TypeScript
13 lines
228 B
TypeScript
|
import type { Squire } from '../Editor';
|
||
|
|
||
|
// ---
|
||
|
|
||
|
const Enter = (self: Squire, event: KeyboardEvent, range: Range): void => {
|
||
|
event.preventDefault();
|
||
|
self.splitBlock(event.shiftKey, range);
|
||
|
};
|
||
|
|
||
|
// ---
|
||
|
|
||
|
export { Enter };
|