ReturnInField and selectedChunk
Posted: Mon Dec 17, 2007 11:03 am
Hello!
I'm currently facing the following problem: within a "ReturnInField" handler (which gets called whenever a user hits "Return" while the underlying "Field" has the keyboard focus) I'm trying to use "the selectedChunk" to determine the position of the insertion point - but unfortunately, "the selectedChunk" always yields "empty".
Within the debugger, I can see that the handler gets called but "the selectedChunk" does not produce a result. A similar construct within a "BackspaceKey" handler works as foreseen - unfortunately, however, I can't use "ReturnKey" within a "Field"...
Does anybody have an idea how to circumvent this problem?
Thanks in advance for any help!
I'm currently facing the following problem: within a "ReturnInField" handler (which gets called whenever a user hits "Return" while the underlying "Field" has the keyboard focus) I'm trying to use "the selectedChunk" to determine the position of the insertion point - but unfortunately, "the selectedChunk" always yields "empty".
Within the debugger, I can see that the handler gets called but "the selectedChunk" does not produce a result. A similar construct within a "BackspaceKey" handler works as foreseen - unfortunately, however, I can't use "ReturnKey" within a "Field"...
Does anybody have an idea how to circumvent this problem?
Thanks in advance for any help!