@worktile/theia 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12248,22 +12248,22 @@
|
|
|
12248
12248
|
},
|
|
12249
12249
|
cancelTextIntent: function (editor, event, anchorBlock, kinds) {
|
|
12250
12250
|
var textIndent = anchorBlock.textIndent, indent = anchorBlock.indent;
|
|
12251
|
-
if (
|
|
12252
|
-
event.preventDefault();
|
|
12253
|
-
IndentEditor.cancelIndent(editor);
|
|
12254
|
-
return true;
|
|
12255
|
-
}
|
|
12256
|
-
if (!indent && textIndent > 2) {
|
|
12251
|
+
if (textIndent > 2) {
|
|
12257
12252
|
event.preventDefault();
|
|
12258
12253
|
textIndent -= 2;
|
|
12259
12254
|
IndentEditor.setTextIndent(editor, kinds, textIndent);
|
|
12260
12255
|
return true;
|
|
12261
12256
|
}
|
|
12262
|
-
if (
|
|
12257
|
+
if (textIndent === 2) {
|
|
12263
12258
|
event.preventDefault();
|
|
12264
12259
|
IndentEditor.setTextIndent(editor, kinds, null);
|
|
12265
12260
|
return true;
|
|
12266
12261
|
}
|
|
12262
|
+
if (indent) {
|
|
12263
|
+
event.preventDefault();
|
|
12264
|
+
IndentEditor.cancelIndent(editor);
|
|
12265
|
+
return true;
|
|
12266
|
+
}
|
|
12267
12267
|
return false;
|
|
12268
12268
|
},
|
|
12269
12269
|
isDisabled: function (editor) {
|