I am having hard time navigating from one element to another using keyboard arrow; I want the navigation to occur only when cursor is at the start or end of the text i.e. "move to right only if at the end of the text and move to left only at the start of the text, say I press left arrow when at the end of the text I do not want to navigate, I simply want to let the default event happen."
Here's a start of what i want, Try1
this is the function I need help writing
function isEndOrStartOfText($this)
{
return true;
// @todo calculate here
}