Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1948

Add support to ctrl-arrow to tags in text fields.


    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 2.0
    • Components: None
    • Labels:
    • Sprint:


      Add support to use Ctrl + right arrow and Ctrl + left arrow in text fields, to jump to and select the next and previous {__} token, respectively.

      This will better support macros that require users to progressively fill in text. E.g. a macro could generate:

      Reason:  {__}
      History: {__}
      Current medications: {__}
      What Preventative health cover is being used and do you need to purchase any today? {__}
      Vaccination: {__}
      Worming: {__}
      Flea control: {__}
      Heartworm Prevention: {__} 
      Examine: {__}
      Mentation: {__}
      Body condition score: {__}
      MM:  {__}              CRT: {__}
      HR: {__}               RR: {__}
      LN: {__}
      Temperature: {__}

      Users would then ctrl + arrow to each {__}, which would be replaced as the user types.

      If there are no tags, then ctrl + arrow should revert to the browser default. On Firefox, this is 'move to previous word' for Ctrl-left arrow and 'move to next word' for Ctrl-right arrow.
      If Ctrl+shift+arrow is pressed, then the browser default behaviour should be used. On Firefox, this selects a region.

      NOTE: this will not work in the Mail editor, which uses an editable iframe rather than a text field.




            • Assignee:
              Tim Anderson
              Tim Anderson
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:

                Who's Looking?