Overriding tab behavior conditionally
Posted: Sat Mar 03, 2012 2:29 am
Is there a way to, in code, fire oxygen's default action that happens when you hit Tab in Author (or shift-tab) (moving to the next/previous node).
I need to conditionally do something at the end of a node when the user hit's tab or the default behavior.
I was thinking I would be able to create 2 new operations (tied to tab and shift tab) and then based on where the cursor was in the document, do my custom action or the default tab behavior.
I looked in AuthorCommonActions, but didn't see what I was looking for and am unable to find anything else.
I know I probably could recreate the logic myself, but I figured it was cleaner to try to use the built in functionality.
I need to conditionally do something at the end of a node when the user hit's tab or the default behavior.
I was thinking I would be able to create 2 new operations (tied to tab and shift tab) and then based on where the cursor was in the document, do my custom action or the default tab behavior.
I looked in AuthorCommonActions, but didn't see what I was looking for and am unable to find anything else.
I know I probably could recreate the logic myself, but I figured it was cleaner to try to use the built in functionality.