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.