MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / handleGameClick

Function handleGameClick

codeclash/viewer/static/js/picker.js:39–49  ·  view source on GitHub ↗
(event, gameName)

Source from the content-addressed store, hash-verified

37}
38
39function handleGameClick(event, gameName) {
40 // Handle different types of clicks for Open button
41 if (event.button === 1 || event.ctrlKey || event.metaKey) {
42 // Middle click, Ctrl+click, or Cmd+click - open in new tab
43 event.preventDefault();
44 openGameInNewTab(gameName);
45 } else if (event.button === 0) {
46 // Left click - open in same tab
47 openGame(gameName);
48 }
49}
50
51function toggleGameSelection(gameName, forceState = null) {
52 // Toggle the checkbox for this game

Callers

nothing calls this directly

Calls 2

openGameInNewTabFunction · 0.85
openGameFunction · 0.85

Tested by

no test coverage detected