Hi group
I'm experiencing a rather weird (well, wierd from my point of view) problem. I have a TextEditor widget in a window. When I start the app, this window comes up (with focus set to the TextEditor widget, just to be sure). When I start entering text, the first character gets "swallowed". Upon entering a second one, both get displayed, but reversed. So, if I enter "b" then "g" on the keyboard, I get "gb" with the cursor BETWEEN the two characters. I debugged and found out that (essentially) in TextEditorController>>processKeyboardEvent there is this check: sel == #normalCharacterKey: ifTrue: [self normalKeyboardEvent: charEvent do: [:ch | taStream nextPut: ch]] ifFalse: and, believe it or not, sel (in my case, at least) is #altCharacterKey: I would have expected #normalCharacterKey: Does anybody have any ideas? And no, I'm not drunk, I did NOT press the alt key ;) Thanks a lot for your help! Mike _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
What platform are you seeing this on? As it happens, John Sarkela and
myself were just reviewing stuff related to what you describe... Andres. -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Mike Bielser Sent: Thursday, March 20, 2008 1:54 AM To: [hidden email] Subject: [vwnc] Weird TextEditor problem Hi group I'm experiencing a rather weird (well, wierd from my point of view) problem. I have a TextEditor widget in a window. When I start the app, this window comes up (with focus set to the TextEditor widget, just to be sure). When I start entering text, the first character gets "swallowed". Upon entering a second one, both get displayed, but reversed. So, if I enter "b" then "g" on the keyboard, I get "gb" with the cursor BETWEEN the two characters. I debugged and found out that (essentially) in TextEditorController>>processKeyboardEvent there is this check: sel == #normalCharacterKey: ifTrue: [self normalKeyboardEvent: charEvent do: [:ch | taStream nextPut: ch]] ifFalse: and, believe it or not, sel (in my case, at least) is #altCharacterKey: I would have expected #normalCharacterKey: Does anybody have any ideas? And no, I'm not drunk, I did NOT press the alt key ;) Thanks a lot for your help! Mike _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
On 20.03.2008 10:27, Valloud, Andres wrote:
> What platform are you seeing this on? As it happens, John Sarkela and > myself were just reviewing stuff related to what you describe... > > Andres. right now, I'm on WinXP SP2 with VW NC 7.5. I'll check later today on Mac OS 10.5.2... Mike _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Mike Bielser-2
Well, here is what I found out: I have a TabControl at the top of my window, plus two TextEditors at
the bottom (see screen shot). As soon as I delete the TabControl, the bottom right TextEditor works as it should (that was the one "misbehaving"). So my suspicion is that the TabControl is the culprit with regards to the #altCharacterKey: Unfortunately, deleting the TabControl is NOT a solution in my case... so if someone has a REAL solution (even a workaround) I'd highly appreciate if they'd let me know... Mike _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc window.jpg (128K) Download Attachment |
Free forum by Nabble | Edit this page |