@@ -202,7 +202,6 @@ export class SelectionManager {
202202 canvas . addEventListener ( 'mousedown' , ( e : MouseEvent ) => {
203203 if ( e . button === 0 ) {
204204 // Left click only
205- console . log ( '[Selection] 🖱️ mousedown - starting selection' ) ;
206205
207206 // CRITICAL: Focus the terminal so it can receive keyboard input
208207 // The canvas doesn't have tabindex, but the parent container does
@@ -222,7 +221,6 @@ export class SelectionManager {
222221 this . selectionStart = cell ;
223222 this . selectionEnd = cell ;
224223 this . isSelecting = true ;
225- console . log ( '[Selection] ✅ isSelecting = true' ) ;
226224 }
227225 } ) ;
228226
@@ -238,7 +236,6 @@ export class SelectionManager {
238236 // Mouse leave - stop selecting if mouse leaves canvas while dragging
239237 canvas . addEventListener ( 'mouseleave' , ( e : MouseEvent ) => {
240238 if ( this . isSelecting ) {
241- console . log ( '[Selection] ⚠️ mouseleave while selecting - but keeping selection active' ) ;
242239 // DON'T clear isSelecting here - allow dragging outside canvas
243240 // The document mouseup handler will catch the release
244241 }
@@ -248,9 +245,7 @@ export class SelectionManager {
248245 // This catches mouseup events that happen outside the canvas (common during drag)
249246 this . boundMouseUpHandler = ( e : MouseEvent ) => {
250247 if ( this . isSelecting ) {
251- console . log ( '[Selection] 🖱️ mouseup - stopping selection' ) ;
252248 this . isSelecting = false ;
253- console . log ( '[Selection] ✅ isSelecting = false' ) ;
254249
255250 const text = this . getSelection ( ) ;
256251 if ( text ) {
@@ -287,7 +282,6 @@ export class SelectionManager {
287282 const text = this . getSelection ( ) ;
288283 if ( text ) {
289284 this . copyToClipboard ( text ) ;
290- console . log ( 'Copied selection to clipboard (via right-click)' ) ;
291285 }
292286 }
293287 } ) ;
@@ -370,10 +364,7 @@ export class SelectionManager {
370364 navigator . clipboard
371365 . writeText ( text )
372366 . then ( ( ) => {
373- console . log (
374- '✅ Copied to clipboard (Clipboard API):' ,
375- text . substring ( 0 , 50 ) + ( text . length > 50 ? '...' : '' )
376- ) ;
367+ // Successfully copied
377368 } )
378369 . catch ( ( err ) => {
379370 console . error ( '❌ Clipboard API failed:' , err ) ;
@@ -382,7 +373,6 @@ export class SelectionManager {
382373 } ) ;
383374 } else {
384375 // Fallback to execCommand for non-secure contexts (like mux.coder)
385- console . log ( '💡 Using fallback copy method (Clipboard API requires HTTPS)' ) ;
386376 this . copyToClipboardFallback ( text ) ;
387377 }
388378 }
@@ -416,12 +406,7 @@ export class SelectionManager {
416406 previouslyFocused . focus ( ) ;
417407 }
418408
419- if ( successful ) {
420- console . log (
421- '✅ Copied to clipboard (fallback):' ,
422- text . substring ( 0 , 50 ) + ( text . length > 50 ? '...' : '' )
423- ) ;
424- } else {
409+ if ( ! successful ) {
425410 console . error ( '❌ Copy failed (both methods)' ) ;
426411 }
427412 } catch ( err ) {
0 commit comments