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

Function handlePickerClick

codeclash/viewer/static/js/app.js:47–57  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

45}
46
47function handlePickerClick(event) {
48 // Handle different types of clicks for picker button
49 if (event.button === 1 || event.ctrlKey || event.metaKey) {
50 // Middle click, Ctrl+click, or Cmd+click - open in new tab
51 event.preventDefault();
52 openGamePickerInNewTab();
53 } else if (event.button === 0) {
54 // Left click - open in same tab
55 openGamePicker();
56 }
57}
58
59// Enhanced foldout behavior
60function initializeFoldouts() {

Callers

nothing calls this directly

Calls 2

openGamePickerInNewTabFunction · 0.85
openGamePickerFunction · 0.85

Tested by

no test coverage detected