Community
Participate
Working Groups
Created attachment 282352 [details] Snippet to reproduce the issue Key event listener added to Display is not triggered if the focus is on any widget. Please refer to the snippet attached to reproduce the issue. Key event on the Display are read properly in SWT applications but the same code does not work in RAP. There are a couple of workarounds for that 1. use display.setData(RWT.ACTIVE_KEYS, new String[]{"//any specific keys"}); 2. add empty key listener to the widgets (refer to the snippet attached) Ideally key event listener in Display should function the same way as it does in SWT.
These limitations are by desing. Adding global key listener to display (without active keys) will trigger a lot of requests (for every key press) that will flood the server. In a multi user RAP application this will make the performance really really bad. Please reopen if you disagree.