MATLAB for Mac doesn't update clipboard until switched to another app and back
Mostra commenti meno recenti
I'm using MATLAB R2017a for mac. I found that MATLAB will not update clipboard to be pasted until switching the focus to another app and switch back (unless when you copied from within MATLAB, which works of course). Why it would be useful? Because every single clipboard manager for Mac does not take your window focus, and this problem essentially makes me not able to use clipboard managers in Mac.
Normal usage: copy and paste within MATLAB: OK; copy in another app and paste in MATLAB: OK.
Problematic usage: copy using a clipboard manager, paste in MATLAB: it won't work and in this case it is still pasting old content. I have tried Alfred, Copied app, same problem.
Take Example of Alfred:
1. Copy "A" in MATLAB, paste in MATLAB: "A".
2. Ctrl+Option+C to call out Alfred clipboard, select an old text from clipboard history such as "B", then I would expect "B" is pasted in MATLAB, but no. "A" is pasted again.
3. Now if I switch to any other app, and switch back again to MATLAB, then CMD+V, "B" is pasted correctly.
Not only clipboard manager such as Alfred, Copied, Paste+ would break, any app that does not have window focus that tried to change clipboard will not work with MATLAB. For example, ColorSnapper 2, which captures pixel color and save to clipboard for you, will not let MATLAB paste the correct text.
This is really annoying since I rely heavily on clipboard managers. I believe this problem also exists in older versions of MATLAB.
----
Update: I have tried to use a different JVM version and the problem is gone. I am now using Java 1.8.0_131-b11. So I assume this is a JVM bug with the old JVM version that bundled with MATLAB 2017a.
Risposte (0)
Categorie
Scopri di più su Environment and Settings in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!