Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting in code doesn't work #3

Open
mobluse opened this issue Feb 25, 2017 · 1 comment
Open

Pasting in code doesn't work #3

mobluse opened this issue Feb 25, 2017 · 1 comment

Comments

@mobluse
Copy link

mobluse commented Feb 25, 2017

I paste in code : STAR 42 EMIT ; and press Enter, but then STAR is not defined. If I type in the same text it works. The same problem exists in Firefox and Chrome in Windows 10. I cannot test the system further if it's not possible to paste in code and use it.

@Bushmills
Copy link
Owner

Bushmills commented May 28, 2017

that's right. Pasting by mouse doesn't trigger the keyboard event handler, which is present to deal with interactive user input. For handling mouse events, such as pasting into the form, either a mouse event handler would be needed, or pasted text taken from the form. I haven't been successful getting a mouse event handler working properly (though mouse buttons and double clicks are caught and responded to), nor did I implement reading from form, as this complicates interactive KEY and KEY?, as those will probably be expected to respond to mouse paste operations too. Therefore current state of mouse pasting is: not implemented. An alternative may be: edit the screens file, using a text editor (which may support mouse pasting), then load source from there by using the LOAD word.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants