Skip to content

Commit

Permalink
v2.5.2 new feature: added property to text insert exploration action …
Browse files Browse the repository at this point in the history
…to allow for automatically close keyboard after setting a input text
  • Loading branch information
Hotzkow committed Aug 5, 2020
1 parent e0138e4 commit 123c0cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

group = "org.droidmate"
version = "2.5.1"
version = "2.5.2"

plugins {
id("org.jetbrains.kotlin.jvm") apply true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ fun String.isLongClick():Boolean = this == LongClick.name || this == LongClickEv
* send the enter key if [sendEnter] is true and the action is not part of an ActionQueue
* (for these only the very last action in the queue may send enter),
* clear the focus again and wait for [delay] millis before continuing (fetching the new state).
*
* @param closeKeyboard close the keyboard (if any) after inserting the text
*/
data class TextInsert(override val idHash: Int, val text:String, override val hasWidgetTarget: Boolean = false,
val delay: Long=0, val sendEnter: Boolean = true): NodeAction(){
val delay: Long=0, val sendEnter: Boolean = true, val closeKeyboard: Boolean = false): NodeAction(){
companion object {
val name: String = this::class.java.declaringClass.simpleName
}
Expand Down

0 comments on commit 123c0cf

Please sign in to comment.