File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ Copyright © 2015 - 2024 [Tyler Liu](https://github.com/tylerlong/)
53
53
- Close most GitHub issues
54
54
- preview dark mode
55
55
- Just copy its example: https://docs.github.com/en/get-started/writing-on-github
56
- - codemirror 6 issues:
57
- - editor.setOption('extraKeys', extraKeys);
58
56
- Evaluate latest version of mermaid
59
57
- Every useEffect should have a dispose method
60
58
- Preview dark theme and light theme
Original file line number Diff line number Diff line change @@ -46,6 +46,24 @@ const Editor = auto((props: { store: Store }) => {
46
46
key : 'Tab' ,
47
47
run : indentMore ,
48
48
} ,
49
+ {
50
+ key : 'Mod-s' ,
51
+ run : ( ) => true ,
52
+ } ,
53
+ {
54
+ key : 'Mod-,' ,
55
+ run : ( ) => {
56
+ ( document . querySelector ( 'i.fa-cog' ) as HTMLElement ) . click ( ) ;
57
+ return true ;
58
+ } ,
59
+ } ,
60
+ {
61
+ key : 'Mod-b' ,
62
+ run : ( ) => {
63
+ ( document . querySelector ( 'i.fa-bold' ) as HTMLElement ) . click ( ) ;
64
+ return true ;
65
+ } ,
66
+ } ,
49
67
] ) ;
50
68
const cm = new EditorView ( {
51
69
extensions : [
You can’t perform that action at this time.
0 commit comments