I am unable to find any such flag.
You can check if there are editor flags for preventing this wraparound functionality.
I am sorry but i forgot to mention in the first post itself that I tried this thing by writing following code
you could manually filter the event, via checking the cursor position, the document lenght and the actual keypress.
Now while debugging I noticed that whenever the cursor position is behind "m" (in the word "forum") and I press right arrow code then the value of aKeyEvent.iCode is equals to 63496. But if the cursor position is after "m" then on pressing the right arrow key the value of aKeyEvent.iCode is equals to 0. Because of which I am unable to grab the right key event itself in that case.
TKeyResponse CHomeHeaderContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent,
if (aType != EEventKey)
ChangeControlFocusRight(); // wanted to handle the event here with the conditions of cursor position and text length
Any inputs on this?