fix(editor): use indentOrCommitTab() to indent text in SymbolInputAdapter (#1505)

* chore(deps): update editor to 0.22.2
* fix: use `indentOrCommitTab()` to indent text in SymbolInputAdapter
This commit is contained in:
Felipe Teixeira
2023-12-01 14:48:06 -03:00
committed by GitHub
parent a052214294
commit 5ea078f0ed
2 changed files with 3 additions and 3 deletions
@@ -119,8 +119,8 @@ public class SymbolInputAdapter extends RecyclerView.Adapter<SymbolInputAdapter.
}
if ("\t".equals(text)) {
text = getIndentationString();
selectionOffset = text.length();
editor.indentOrCommitTab();
return;
}
var cur = editor.getText().getCursor();
+1 -1
View File
@@ -6,7 +6,7 @@ junit-jupiter = "5.10.0"
kotlin = "1.9.10"
kotlin-coroutines = "1.7.3"
tree-sitter = "4.0.1-internal.1+branch.dev.commit.e09c012.timestamp.20231125133123-SNAPSHOT"
editor = "0.22.1-6d761d6-SNAPSHOT"
editor = "0.22.2"
glide = "4.16.0"
androidx-vectordrawable = "1.1.0"
androidx-navigation = "2.5.3"