We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3a07a commit 902a038Copy full SHA for 902a038
src/shortcuts.ts
@@ -13,7 +13,11 @@ export default function shortcuts(e: React.KeyboardEvent<HTMLTextAreaElement>) {
13
if (code === 'tab') {
14
stopPropagation(e);
15
if (api.start === api.end) {
16
- api.insertText(' ').position(api.start + 2, api.end + 2);
+ if (e.shiftKey) {
17
+ api.lineStarRemove(' ');
18
+ } else {
19
+ api.insertText(' ').position(api.start + 2, api.end + 2);
20
+ }
21
} else if (api.getSelectedValue().indexOf('\n') > -1 && e.shiftKey) {
22
api.lineStarRemove(' ');
23
} else if (api.getSelectedValue().indexOf('\n') > -1) {
0 commit comments