I am running SmartGwt from november 2010, on Windows 7.
I have a RichTextEditor, and I need to manage '{'-key strokes. However, it seems that unlike the KeyPressEvent that gets fired from the TextAreaItem, the KeyPressEvent fired from this widget does not have the functionality of getting the KeyCode, just the KeyName. The docs tell me that the curly bracket will have the same value as the hard bracket, but this is not true. When printing the keyname of the curly bracket I get ` as output. Also, there is no way of checking whether or not the shift key is pressed, so even if the value was the same, I would still not be able to distinguish between { and [.
So, how can I capture '{' key press in a RichTextEditor?
I have a RichTextEditor, and I need to manage '{'-key strokes. However, it seems that unlike the KeyPressEvent that gets fired from the TextAreaItem, the KeyPressEvent fired from this widget does not have the functionality of getting the KeyCode, just the KeyName. The docs tell me that the curly bracket will have the same value as the hard bracket, but this is not true. When printing the keyname of the curly bracket I get ` as output. Also, there is no way of checking whether or not the shift key is pressed, so even if the value was the same, I would still not be able to distinguish between { and [.
So, how can I capture '{' key press in a RichTextEditor?
Comment