Retain cursor position after macro expansion

Description

When macros are expanded, the cursor jumps to the end of the text. This is annoying if the macro is inserted into the middle of the text, as the cursor must then be moved back, either with the keys or by mouse.

This JIRA will extend the javascript text field components so that they:

  • track the cursor position

  • enable the cursor position to be set

This can be used to move the cursor position back to where it was, prior to macro expansion. If the cursor was at the end of a macro, then it will be moved to the end of the macro expansion.

Note that web browsers don't handle cursor positioning in the same manner. This project will initially support Firefox, Chrome and Safari.

Environment

None

Activity

Show:
Tim Anderson
September 2, 2013, 12:01 AM

Changes applied to vpms, revisions: 5391-5396

Fixed

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Major