tab-copy icon indicating copy to clipboard operation
tab-copy copied to clipboard

[Mac] False tab copy if text is selected in browser address bar

Open mksmpc opened this issue 1 month ago • 4 comments

When I select part of the text in the address bar and copy it using Command + C, the entire link is copied in accordance with the TabCopy settings (a green check mark appears on the extension icon), instead of just copying the selected part of the link.

The keyboard shortcut is Ctrl (^) + C.

If I change the keyboard shortcut to Ctrl (^) + V, for example, then Command + V will also activate copying the tabs. Same behavior if I select multiple tabs.

Expected behavior - Command+C does not cause a tab to be copied when text in the address bar is selected.

Log:

chunk-RZ7wazaN.js:45 copying scope highlighted-tabs...
chunk-RZ7wazaN.js:45 transforming 1 tab to "Link" text
chunk-RZ7wazaN.js:45 transforming 1 tab to "Link" html
chunk-RZ7wazaN.js:45 1 tab copied as link

mksmpc avatar Oct 31 '25 17:10 mksmpc

Keyboard shortcuts defined for an extension in Chrome take precedence over OS-level shortcuts (with some exceptions). I recommend selecting a shortcut not already in use.

Hans

On Fri, Oct 31, 2025 at 11:04 AM mksmpc @.***> wrote:

mksmpc created an issue (hansifer/tab-copy#28) https://github.com/hansifer/tab-copy/issues/28

When I select part of the text in the address bar and copy it using Command + C, the entire link is copied in accordance with the TabCopy settings (a green check mark appears on the extension icon), instead of just copying the selected part of the link.

The keyboard shortcut is Ctrl (^) + C.

If I change the keyboard shortcut to Ctrl (^) + V, for example, then Command + V will also activate copying the tabs. Same behavior if I select multiple tabs.

Expected behavior - Command+C does not cause a tab to be copied when text in the address bar is selected.

Log:

chunk-RZ7wazaN.js:45 copying scope highlighted-tabs... chunk-RZ7wazaN.js:45 transforming 1 tab to "Link" text chunk-RZ7wazaN.js:45 transforming 1 tab to "Link" html chunk-RZ7wazaN.js:45 1 tab copied as link

— Reply to this email directly, view it on GitHub https://github.com/hansifer/tab-copy/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4ARXYWVLUJOGVDEFOOSL32OJABAVCNFSM6AAAAACKZNXW4KVHI2DSMVQWIX3LMV43ASLTON2WKOZTGU3TKNZTGQ3TCMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

hansifer avatar Oct 31 '25 17:10 hansifer

I agree, that’s why I use the combination Ctrl(^) + C. The point is that Command and Ctrl(^) are different keys, but the copy tab action is enabled when I press the key combination that is NOT assigned to the extension in Chrome settings.

The shortcut key for copying on a Mac is Command + C

mksmpc avatar Nov 01 '25 07:11 mksmpc

This incorrect behavior is observed only in the address bar. If I press Command + C in the body of the page, no error occurs.

mksmpc avatar Nov 01 '25 07:11 mksmpc

Ah gotcha. Sorry for misunderstanding.

Looks like a Chrome bug:

Cmd (⌘) modifier triggers extensions keyboard shortcuts bound to the Ctrl (^) key in the URL bar [41431676] - Chromium https://issues.chromium.org/issues/41431676

Hans

On Sat, Nov 1, 2025 at 1:47 AM mksmpc @.***> wrote:

mksmpc left a comment (hansifer/tab-copy#28) https://github.com/hansifer/tab-copy/issues/28#issuecomment-3475908033

This incorrect behavior is observed only in the address bar. If I press Command + C in the body of the page, no error occurs.

— Reply to this email directly, view it on GitHub https://github.com/hansifer/tab-copy/issues/28#issuecomment-3475908033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4ARXLSVAQM4SE2BF4ZNT32RQRTAVCNFSM6AAAAACKZNXW4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINZVHEYDQMBTGM . You are receiving this because you commented.Message ID: @.***>

hansifer avatar Nov 01 '25 17:11 hansifer