Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawl/crawl
/ send_keycode
Function
send_keycode
crawl-ref/source/webserver/static/scripts/client.js:261–266 ·
view source on GitHub ↗
(code)
Source
from the content-addressed store, hash-verified
259
}
260
261
function
send_keycode(code)
262
{
263
/* TODO: Use send_message
for
these as soon as crawl uses a proper
264
JSON parser */
265
socket.send(
'{"msg":"key","keycode":'
+ code +
'}'
);
266
}
267
268
function
send_bytes(bytes)
269
{
Callers
1
handle_keydown
Function · 0.85
Calls
1
send
Method · 0.45
Tested by
no test coverage detected