(event, gameName)
| 37 | } |
| 38 | |
| 39 | function 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 | |
| 51 | function toggleGameSelection(gameName, forceState = null) { |
| 52 | // Toggle the checkbox for this game |
nothing calls this directly
no test coverage detected