Skip to content

Commit

Permalink
Update ft-input.js
Browse files Browse the repository at this point in the history
  • Loading branch information
9mdv authored Mar 5, 2024
1 parent e1b5ff8 commit 12e159e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/components/ft-input/ft-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ export default defineComponent({
return
}

if (event.getModifierState('Control') && event.key === 'u') {
this.handleClearTextClick()
}

if (this.visibleDataList.length === 0) { return }

this.searchState.showOptions = true
Expand Down Expand Up @@ -316,6 +320,7 @@ export default defineComponent({

focus() {
this.$refs.input.focus()
this.select()
},

select() {
Expand Down

0 comments on commit 12e159e

Please sign in to comment.