mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
fe0dfdf6c4
This is a massive refactor to port Squire to TypeScript, fix a bunch of small bugs and modernise our tooling. The development was done on an internal repository, so apologies to anyone following externally for the commit dump; updates from here should come as real commits again. Co-authored-by: Joe Woods <woods@fastmailteam.com>
12 lines
228 B
TypeScript
12 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 };
|