mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
use more keyCode
This commit is contained in:
parent
e8547b027c
commit
d0c26aa309
@ -408,7 +408,7 @@ class SongSelect{
|
|||||||
this.showWarning = false
|
this.showWarning = false
|
||||||
}
|
}
|
||||||
}else if (this.search){
|
}else if (this.search){
|
||||||
if(name === "back" || (event.keyCode && event.keyCode === 70 && ctrl)) {
|
if(name === "back" || (event && event.keyCode && event.keyCode === 70 && ctrl)) {
|
||||||
this.removeSearch(true)
|
this.removeSearch(true)
|
||||||
}else if(name === "down" && this.search.results.length){
|
}else if(name === "down" && this.search.results.length){
|
||||||
if(this.search.input == document.activeElement && this.search.results){
|
if(this.search.input == document.activeElement && this.search.results){
|
||||||
@ -438,7 +438,7 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else if(this.state.screen === "song"){
|
}else if(this.state.screen === "song"){
|
||||||
if(event && event.code === "KeyF" && ctrl){
|
if(event && event.keyCode && event.keyCode === 70 && ctrl){
|
||||||
this.displaySearch()
|
this.displaySearch()
|
||||||
}else if(name === "confirm"){
|
}else if(name === "confirm"){
|
||||||
this.toSelectDifficulty()
|
this.toSelectDifficulty()
|
||||||
|
Loading…
Reference in New Issue
Block a user