drivenotepad/app

Re-enable right-click

Opened this issue · 1 comments

Original Title: Why do you disallow right click ?

Hello,

Question is in the title. I think this is one of the most annoying thing I encoutered this year.

When doing a right click, in order to copy something, I've got the fatal "See the list of keyboard shortcuts for copy/paste, select-all, and undo/redo.", with a red shaking rectangle in background.

The eventListener does callback an anonymous function, which makes it even harder to change with extensions like Greasemonkey.

dn.el.editor.addEventListener('contextmenu', function(e){
    dn.show_error("See the list of keyboard shortcuts for copy/paste, select-all, and undo/redo.")
});

The point of my message is more about understanding why this was implemented rather than actually solving the problem. But this would be a great feature.

Thank you !

This goes back to a very early version of the app. I forget what the original reasoning was.

You are right that it's worth fixing..it's quite likely that the original reasoning is no longer valid.

Pull requests are welcome!