This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checks whether the passed in node is editable or not. | |
* An editable node is one that returns true to isContentEditable or has a tag name as | |
* any one of the following: | |
* "textarea", "input", "text", "email", "number", "search", "tel", "url", "password" | |
* | |
* @param node the node to check | |
* @return true if the node is editable and false otherwise | |
*/ | |
function isEditable(node: Node): boolean { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.whitecrescent.waqti.frontend.customview | |
import android.content.Context | |
import android.os.Build | |
import android.text.InputType | |
import android.util.AttributeSet | |
import android.view.View | |
import androidx.appcompat.widget.AppCompatEditText | |
/** |