hostilefork / replpad-js

Interactive Web Console for Rebol language (Ren-C branch)
GNU Lesser General Public License v3.0
13 stars 9 forks source link

Keyboard paste shortcut won't paste when transcript selected #59

Open hostilefork opened 5 years ago

hostilefork commented 5 years ago

If you hit a printable key while you have a selection from the transcript, it will forget your selection and jump you down to the input area.

If you use non-printable key commands (like Ctrl-C) it will not jump you, instead letting you copy and make your selection.

But if you select and copy text with Ctrl-C...and still have the selection on the transcript...Ctrl-V acts as a no-op. It would be nicer if it would consider a paste operation to be a "printable key" and jump accordingly.

This might be hard...because the paste event is probably blocked at the browser level. So this would mean sidestepping the browser's abstract pasting concept and going to the key level to simulate a paste when a Ctrl-V (or Command-V on mac) is received.