a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

dynamically get last used highlight in shortcut

+5 -3
+5 -3
components/Blocks/TextBlock/keymap.ts
··· 37 37 "Meta-i": toggleMark(schema.marks.em), 38 38 "Ctrl-i": toggleMark(schema.marks.em), 39 39 "Ctrl-Meta-x": toggleMark(schema.marks.strikethrough), 40 - "Ctrl-Meta-h": toggleMark(schema.marks.highlight, { 41 - color: useUIState.getState().lastUsedHighlight, 42 - }), 40 + "Ctrl-Meta-h": (...args) => { 41 + return toggleMark(schema.marks.highlight, { 42 + color: useUIState.getState().lastUsedHighlight, 43 + })(...args); 44 + }, 43 45 "Ctrl-a": metaA(propsRef, repRef), 44 46 "Meta-a": metaA(propsRef, repRef), 45 47 Tab: () => {