Note:
Before bug reporting, please make sure you have tried the latest (alpha) version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.
Describe the bug
I select a text field.
I launch the Clipboard Manager using my shortcut (⌃V).
I select the content to paste – either by double-clicking the text or using one of the paste methods (the method doesn’t seem to affect the outcome).
The Clipboard Manager closes, but the content does not appear in the text field.
It seems that the window where I intend to paste the text does not receive focus after the Clipboard Manager closes.
I then re-select the text field.
If I used the “paste” or “formatted paste” method in the Clipboard Manager, pressing ⌘V afterward causes the text to finally appear.
this is most likely indeed caused by the accessibility keyboard. This causes various issues with BTT because it acts as a standard window although it shouldn’t. Most likely BTT tries to activate the keyboard window instead of the textfield window.
I had looked into this some time ago for a window snapping related issue, but haven’t found a workaround
on older macos versions I didn’t need to activate the previous window explicitly, but due to some changes in Sequoia this is now necessary to make it work reliably
Maybe I can add an option to disable this, however without that it sometimes causes failures if one app has multiple windows
Unfortunately, I don't know how window selection works in BTT, but what if register the 2 most recently active windows and if the previous one is an AssistiveControl process (if I'm not mistaken) then the still previous window is activated?
I think the problem was that in some situations the accessibility keyboard completely broke the APIs that BTT needs to get the windows.
However I just tried on my machine and I don't seem to experience any issues with the clipboard manager and the accessibility keyboard here. Maybe something else is interfering? Does it work if you close the accessibility keyboard?
Well, the problem must be due to something else because even when I turned off the keyboard the same thing happens. Is there any way to check what application is active when you click? I have your preset running on the bar, however it shows me the window correctly.
The only place I notice the issue is specifically in renaming finder files.
Similar to the OP, but some other details:
I select a text field. [I click a filename and it highlights to rename, and typically I then click-drag to highlight just a portion of the name I want to replace with a Clipboard Manager favorite]
I launch the Clipboard Manager using my shortcut (⌃V). [Mine is shift-cmd-v, though I’m sure that doesn’t matter]
I select the content to paste – either by double-clicking the text or using one of the paste methods (the method doesn’t seem to affect the outcome).
The Clipboard Manager closes, but the content does not appear in the text field. [Finder sounds a beep, closes the edit highlight, no change to the filename]
It seems that the window where I intend to paste the text does not receive focus after the Clipboard Manager closes. [Agree, all looks properly highlighted and editable until BTT closes its window, and I guess BTT then tries to execute the paste where Finder has now closed the edit.]
I then re-select the text field.
If I used the “paste” or “formatted paste” method in the Clipboard Manager, pressing ⌘V afterward causes the text to finally appear.
Like OP, this did work just fine for me in the past.
I’d love for this to be fixed! And in the meantime…
I just determined a slightly better work-around, if one knows they are in a scenario where the issue will occur (like when I’m renaming Finder files.) Posting here in case it’ll be helpful to others or in fixing.
1- for the intended paste location, highlight/enter edit mode (for me, it’s the Finder filename)
2- launch Clipboard Manager via hotkey
3- choose the intended paste content (like from Favorites)
4- INSTEAD OF USING CLIPBOARD MANAGER PASTE function, double- or triple-click to highlight the content in the Clipboard Manager
5- CMD-C to copy it from the Clipboard Manager
6- ESC to close Clipboard Manager. The highlighted edit location remains active
7- CMD-V to paste
This streamlines the process eliminating the failed paste and re-activating the edit mode, etc.
are you referring to the finder file rename issue reference above? unfortunately that is hard to resolve because finder applies some special focus handling there
Yes, but the problem is broader than the Finder issue: I can reproduce it in any app I’m using.
Long story short: the pasting with cmd+v (and also via the menu) is blocked.
It can be unblocked by pasting with some alternative shortcut (I use ctrl+shift+1 for “Action: Paste Items: 1” to paste the 1st item in my clipboard as plain text);
when unblocked it works reliably until I copy some other text.
Here’s a short video that displays this in iterm2. I pinned the clipboard manager so that you can see how clipboard contents change. The clipboard text (“three” in my video) is not inserted when I cmd+v or use the menu item Paste; it is only pasted after I invoke my ctrl+shift+1 shortcut to paste the plain text (and then I can paste just fine with cmd+v again).
OTOH, pasting works fine when BetterTouchTool is not running.
I dug deeper into it and it seems my issue is different than the OP’s one
I’m using a custom clipboard transformer that appends a new clipboard item if the text I just copied is, for example, a GitHub url. If it's not one of the supported URLs, it returned an empty string (which effectively prevents adding a new clipboard item).
But this seemed to have blocked the pasting. When I replaced the return statement with throw new Exception() statement, this did the job:
pasting works again
and my clipboard transformer only adds a new item if I copy a supported URL.
I am new to the clipboard manager feature and I am having this experience. I hit command-shift-v, the beautiful manager window pops up and I can use all the cool features in there, but if I double click one or press enter or press command-7 to paste the 7th item then the item is NOT pasted. Instead the system just beeps and the manager window goes away. This happens in all apps on Tahoe 26.4.1.
In the last hour, before and after your response, I had been changing BTT from cmd-shift-v to cmd-opt-v, and using LaunchBar's clipboard history with cmd-shift-v. To my surprise BTT started pasting no problem, and then when I switched BTT back to cmd-shift-v it continues to paste correctly.
I can't explain what changed but I was having this problem for days, exactly as described in Stankiewicz's original post -- and Ben's 'workaround' also 'worked' for me. The system would beep instead of pasting.
Perhaps others with this problem should jiggle their keybinding. That's a strange explanation, though, because the binding worked fine, it brought up the manger window.
Over the last couple days at some point the problem came back. It is happening right now in this window: if I try to paste from history, it just beeps.
Like two others described, after the paste window disappears, I can no longer type into this text box which continues to be highlighted with a blinking cursor. If I click back in the field then I can type again.
After writing the previous sentence, just now I went in and jiggled my trigger: I changed from cmd-shift-v to cmd-opt-shift-v. Now does it paste correctly? Yes, it sure does.
Now I have changed it back to cmd-shift-v, does it paste? Yes.
Today I had the 'beep' non-pasting problem, went immediately to BTT Configuration, clicked to set the key combo for Show/Hide Clipboard, and I didn't even change it to a new value. I just set it to cmd-shift-V again and paste began working again. It feels like a stable pattern so it's good to have a workaround.
Edit one day later: the problem may occur overnight. Today when I couldn't paste, I merely opened the BTT Configuration, then closed it without interacting with the window, and then I was able to paste.