-
Notifications
You must be signed in to change notification settings - Fork 236
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
[SNAPSHOT] Regression: setting key pressed event handler results in silently discarding all key events with non-printable codes #257
Comments
Oh! Ok. Yeah, that makes sense now 😄 If you look at I'm not sure why that worked for |
Ohhh, thanks! I totally missed that, because I used |
It worked in 0.6.10 because StyledTextAreaBehavior registered the event handlers during skin instantiation, which happens when the control is first displayed, which is typically after the user registers his or her handlers. Now that we don't have skin, StyledTextArea's handlers are registered when StyledTextArea is created, and then your What @JordanMartinez suggests to do will fix your problem. There is also a newer version of WellBehavedFX (package |
Ok, thanks! 😄 |
@TomasMikula This is what you guys were talking about on some bug thread regarding an InputMapping API, correct? |
Yes, exactly. I developed the new experimental version of WellBehavedFX as an alternative to the proposed input mapping API that was supposed to go into JavaFX 9, because I felt strongly that the proposed design was flawed. In the end, plans to get the API into JavaFX 9 were dropped (which I think is better than having a bad API). As a result, I got back to my work and didn't really get to release the new version. |
Ah, ok. Cool! |
For the record, the discussion is here: JDK-8091189. I then also proposed to Jonathan Giles to work out some use cases side by side, so that we can compare our designs. So I wrote this document with some use cases and asked Jonathan to fill his solutions and optionally add more use cases. He never did it and dropping the feature for 9 was announced shortly after. |
Using:
Consider:
Actual Results Only Expected Results
Any ideas how to produce the expected results (i.e., how do you trap |
Possibly not cross-platform? |
After this, only letters, symbols, new lines can be entered in text field. You can't use backspace, delete, arrow keys etc.
This worked correctly in last stable version
0.6.10
.The text was updated successfully, but these errors were encountered: