mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-15 16:52:39 +08:00
add space to next
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -30,8 +30,8 @@ class App{
|
|||||||
globalThis.onerror = (event, source, lineno, colno, error) => {
|
globalThis.onerror = (event, source, lineno, colno, error) => {
|
||||||
this.hint(`[ERROR] at (${source}:${lineno}:${colno})\n\n${error?.stack||error||'unknow Error'}`, 'error');
|
this.hint(`[ERROR] at (${source}:${lineno}:${colno})\n\n${error?.stack||error||'unknow Error'}`, 'error');
|
||||||
}
|
}
|
||||||
const keyDownCallback = (keyboardEvent) => {
|
const keyDownCallback = ({which: w, keyCode: k}) => {
|
||||||
if (keyboardEvent.which === 13 || keyboardEvent.keyCode === 13) {
|
if ( w === 13 || k === 13 || w === 32 || k === 32 ) {
|
||||||
const pressEnterFunc = this.#pages[this.#currentPage]?.pressEnter;
|
const pressEnterFunc = this.#pages[this.#currentPage]?.pressEnter;
|
||||||
pressEnterFunc && typeof pressEnterFunc === 'function' && pressEnterFunc();
|
pressEnterFunc && typeof pressEnterFunc === 'function' && pressEnterFunc();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user