Glimmr Form Fields

version 1/101201 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Horizontal movement key (arrow keys)

    A keypress-to-string conversion rule when keystroke-code is a horizontal movement key (this is the keypress horizontal movement rule):
        if keystroke-code is -2:[left arrow]
            decrease cursor of the input-stream of the current field by 1;
        if keystroke-code is -3:[right arrow]
            increase cursor of the input-stream of the current field by 1;
        if cursor of the input-stream of the current field < 0:
            follow the field input error-handling rules for the current field;
            now cursor of the input-stream of the current field is 0;
        if cursor of the input-stream of the current field > len:
            follow the field input error-handling rules for the current field;
            now cursor of the input-stream of the current field is len.

    To decide whether (keychar - a number) is a horizontal movement key:
        if keychar > -4 and keychar < -1, decide yes;
        decide no.