mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
13 lines
340 B
JavaScript
13 lines
340 B
JavaScript
import IFocus from "./IFocus"
|
|
|
|
export default class FocusTextEdit extends IFocus {
|
|
|
|
focused() {
|
|
this.blueprint.dispatchEditTextEvent(true)
|
|
}
|
|
|
|
unfocused() {
|
|
document.getSelection()?.removeAllRanges() // Deselect eventually selected text inside the input
|
|
this.blueprint.dispatchEditTextEvent(false)
|
|
}
|
|
} |