mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-12-23 01:36:14 +08:00
allow ctrl+f from diff sel, fix input focus
This commit is contained in:
parent
6c6da320e1
commit
24f02393eb
@ -474,7 +474,10 @@ class SongSelect{
|
||||
this.playBgm(false)
|
||||
}
|
||||
}else if(this.state.screen === "difficulty"){
|
||||
if(name === "confirm"){
|
||||
if(event && event.keyCode && event.keyCode === 70 && ctrl){
|
||||
this.displaySearch()
|
||||
event.preventDefault()
|
||||
}else if(name === "confirm"){
|
||||
if(this.selectedDiff === 0){
|
||||
this.toSongSelect()
|
||||
}else if(this.selectedDiff === 1){
|
||||
@ -2771,7 +2774,10 @@ class SongSelect{
|
||||
this.playSound("se_pause")
|
||||
loader.screen.appendChild(this.search.div)
|
||||
this.setSearchTip()
|
||||
this.search.input.focus()
|
||||
|
||||
setTimeout(() => {
|
||||
this.search.input.focus()
|
||||
}, 10)
|
||||
}
|
||||
|
||||
removeSearch(byUser=false){
|
||||
|
Loading…
Reference in New Issue
Block a user