mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 15:31:51 +08:00
fix ctrl+f
This commit is contained in:
parent
d0c26aa309
commit
6a9139f9e9
@ -335,7 +335,8 @@ class SongSelect{
|
|||||||
session: ["backspace"],
|
session: ["backspace"],
|
||||||
ctrl: ["ctrl"],
|
ctrl: ["ctrl"],
|
||||||
shift: ["shift"],
|
shift: ["shift"],
|
||||||
mute: ["q"]
|
mute: ["q"],
|
||||||
|
search: ["f"]
|
||||||
}, this.keyPress.bind(this))
|
}, this.keyPress.bind(this))
|
||||||
this.gamepad = new Gamepad({
|
this.gamepad = new Gamepad({
|
||||||
confirm: ["b", "start", "ls", "rs"],
|
confirm: ["b", "start", "ls", "rs"],
|
||||||
@ -410,6 +411,7 @@ class SongSelect{
|
|||||||
}else if (this.search){
|
}else if (this.search){
|
||||||
if(name === "back" || (event && event.keyCode && event.keyCode === 70 && ctrl)) {
|
if(name === "back" || (event && event.keyCode && event.keyCode === 70 && ctrl)) {
|
||||||
this.removeSearch(true)
|
this.removeSearch(true)
|
||||||
|
event.preventDefault()
|
||||||
}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){
|
||||||
this.searchSetActive(0)
|
this.searchSetActive(0)
|
||||||
@ -440,6 +442,7 @@ class SongSelect{
|
|||||||
}else if(this.state.screen === "song"){
|
}else if(this.state.screen === "song"){
|
||||||
if(event && event.keyCode && event.keyCode === 70 && ctrl){
|
if(event && event.keyCode && event.keyCode === 70 && ctrl){
|
||||||
this.displaySearch()
|
this.displaySearch()
|
||||||
|
event.preventDefault()
|
||||||
}else if(name === "confirm"){
|
}else if(name === "confirm"){
|
||||||
this.toSelectDifficulty()
|
this.toSelectDifficulty()
|
||||||
}else if(name === "back"){
|
}else if(name === "back"){
|
||||||
|
Loading…
Reference in New Issue
Block a user