Copy to Clipboard not working on Safari (MacOS 12.7.4)
Opened this issue · 0 comments
tiberiusbrown commented
I’m on a MAC running Monterey 12.7.4.
The copy to clipboard button (from the Serial Monitor) does not copy when using Safari but it does when I use Chrome, Firefox or Opera.
Probably need to set clipboard from event handler only (note from sokol lib):
NOTE that on the HTML5 platform, sapp_set_clipboard_string() must be called from inside a 'short-lived event handler', and there are a few other HTML5-specific caveats to workaround. You'll basically have to tinker until it works in all browsers :/ (maybe the situation will improve when all browsers agree on and implement the new HTML5 navigator.clipboard API).