Glimmr Form Fields

version 1/101201 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Accepted control input

    [The accepted control input serves as a gatekeeper for special characters, such as arrow keys. Any character code listed in this list will be allowed, and we will need special keypress-to-string conversion activity to deal with them.

    It would be far better if we could set this property initially to a variable (like "current input list"), but Inform does not currently allow for the initial definition of a property to be a variable.]

    A g-element has a list of numbers called the accepted control input. The accepted control input is usually {-2, -3, 3, 127, -6, -7, -8, -9}.

    [-2 left arrow
    -3 right arrow
    -4 up arrow
    -5 down arrow
    -6 return
    -7 backspace/delete
    -8 escape
    -9 tab
    -10 page up
    -11 page down
    -12 home
    -13 end
    3 return/enter
    127 backspace/delete ]