Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/candybox2/candybox2.github.io
/ getCanUseHotkeys
Function
getCanUseHotkeys
code/main/Keyboard.ts:50–54 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
48
}
49
50
function
getCanUseHotkeys(): boolean{
51
if
($(
':focus'
).hasClass(
"noHotkeys"
))
52
return
false;
53
return
true;
54
}
55
56
export
function
isKeyPressed(keyString: string): boolean{
57
return
game.getHotkeys()[keyString].getPressed();
Callers
1
execute
Function · 0.85
Calls
2
$
Function · 0.85
hasClass
Method · 0.80
Tested by
no test coverage detected