@ -41,7 +41,24 @@ object AppConst {
val keyboardToolChars: List<String> by lazy {
arrayListOf(
"@", "&", "|", "%", "/", ":", "[", "]", "{", "}", "<", ">", "\\", "$", "#", "!", ".",
"※",
"@",
"&",
"|",
"%",
"/",
":",
"[",
"]",
"{",
"}",
"<",
">",
"\\",
"$",
"#",
"!",
".",
"href", "src", "textNodes", "xpath", "json", "css", "id", "class", "tag"
)
}
@ -350,7 +350,7 @@ class BookSourceEditActivity :
return true
override fun sendText(text: String) {
private fun insertText(text: String) {
if (text.isBlank()) return
val view = window.decorView.findFocus()
if (view is EditText) {
@ -365,6 +365,23 @@ class BookSourceEditActivity :
if (text == AppConst.keyboardToolChars[0]) {
insertText(
"""
,{
"charset": "",
"method": "POST",
"body": "",
"headers": "{"User-Agent": ""}"
""".trimIndent()
} else {
insertText(text)
private fun showKeyboardTopPopupWindow() {
mSoftKeyboardTool?.let {
if (it.isShowing) return
@ -183,7 +183,7 @@ class RssSourceEditActivity :
@ -198,6 +198,24 @@ class RssSourceEditActivity :