I have been trying to use ctrl-C and ctrl-V for copy paste. Didn’t think of trying the mouse ones as I never use those anywhere else. As you suggest the mouse copy/paste works in Discourse while the keyboard ones don’t
A known problem with ver 11, but according to this was fixed in Opera Presto 2.10 (April 23, 2012)
Clipboard API
Added the following support for Clipboard API (Presto/2.10.292)
Implemented copy, cut, and paste events for text/plain and text/html content.
Implemented support for copy, cut, and paste arguments to document.execCommand(), if allowed by site-specific preference.
See: Clipboard API and events
Well, @felgall I’m sure you have more experience with Opera userscripts than I do and that you could clean up and further develop this messy alpha version. But I have confirmed that Discourse does use Mousetrap for key bindings.
(function () {
if (window.location.href.indexOf('www.sitepoint.com/community/t/') != -1) {
window.opera.addEventListener('AfterEvent.load', function (e) {
if (e.event.target instanceof HTMLScriptElement) {
if (typeof HTMLScriptElement == 'function') {
if (typeof Mousetrap != 'undefined') {
for (var prop in Mousetrap) {
if (prop == 'handleKey') {
console.log(prop + " ~ " + Mousetrap[prop]);
}
}
}
}
}
}, false);
}
})();
Since it works but only needs to run on a specific site, the only change worth making is to get rid of the outermost if statement that tests whether it is SitePoint and specify that in the userscript @include header instead.