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

Document.globalKeyDownAction doesn't apply to new code windows in the IDE #1159

Closed
jamshark70 opened this issue Jul 30, 2014 · 1 comment
Closed
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library" env: SCIDE

Comments

@jamshark70
Copy link
Contributor

To reproduce:

  1. Run this (any time -- it doesn't have to be part of the startup sequence):

    Document.globalKeyDownAction = { |doc, char, modifiers, ascii| ascii.debug };
    
  2. Hit a few keys in the code window where you did 1, to verify that the ASCII codes appear in the post window.

  3. Ctrl (Cmd) N to create a new code document.

  4. Start typing. ASCII codes don't appear. (Though, strangely, the return key will cause 13 to be printed, at least in Ubuntu.)

If it's a global key down action, then it should apply to all documents, not only the ones that existed when the language initialized.

@muellmusik
Copy link
Contributor

This should be fixed by 5c62f5f when PR #1213 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library" env: SCIDE
Projects
None yet
Development

No branches or pull requests

2 participants