mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
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:
@@ -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();
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user