make shortcut editor tab dependent
This commit is contained in:
1 parent
db2b45a095
commit
0c5266429d
2 files changed
+9
-5
No files matched your search
@@ -207,8 +207,13 @@ const newPage = (view)=>{
|
||||
return true;
|
||||
};
|
||||
|
||||
export default keymap.of([
|
||||
export const generalKeymap = keymap.of([
|
||||
{ key: 'Tab', run: insertTabAtCursor },
|
||||
{ key: 'Mod-z', run: undo }, //i think it may be unnecessary
|
||||
{ key: 'Mod-Shift-z', run: redo },
|
||||
]);
|
||||
|
||||
export const markdownKeymap = keymap.of([
|
||||
//{ key: 'Shift-Tab', run: indentMore },
|
||||
{ key: 'Shift-Tab', run: indentLess },
|
||||
{ key: 'Mod-b', run: makeBold },
|
||||
@@ -233,6 +238,4 @@ export default keymap.of([
|
||||
{ key: 'Shift-Mod-6', run: makeHeader(6) },
|
||||
{ key: 'Shift-Mod-Enter', run: newColumn },
|
||||
{ key: 'Mod-Enter', run: newPage },
|
||||
{ key: 'Mod-z', run: undo }, //i think it may be unnecessary
|
||||
{ key: 'Mod-Shift-z', run: redo },
|
||||
]);
|
||||
Reference in new issue
Block a user