Fixed another build error
This commit is contained in:
parent
9db38414d2
commit
f82041b9d2
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ namespace ppt {
|
||||||
|
|
||||||
export function key_pressed(code: string | SpecialKey) : boolean {
|
export function key_pressed(code: string | SpecialKey) : boolean {
|
||||||
if(typeof(code) === 'string')
|
if(typeof(code) === 'string')
|
||||||
return current_state.code == code;
|
return typeof current_state[code] !== "undefined";
|
||||||
return current_state.special[code];
|
return current_state.special[code];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue