Page 2 of 2

Re: InputField - text input handling library

Posted: Tue Mar 15, 2022 2:46 pm
by ReFreezed
Update 3.3

Changes since 3.2:
  • Added: Event method wheelmoved() (which can do horizontal scrolling).
  • Added: Triple-click-and-drag to select lines.
  • Added: Method setType().
  • Added: Methods getInfoAtCoords(), getInfoAtCursor(), getInfoAtCharacter().
  • Added: Methods getVisibleLine(), getVisibleLineCount().
  • Added: Methods getWheelScrollSpeed(), setWheelScrollSpeed().
  • Changed: Better/proper shortcuts in macOS.
  • Changed: The cursor's original x position is now preserved when navigating vertically multiple lines.
  • Changed: Newlines now count as word boundaries.
  • Changed: Navigating up on the first line or down on the last line now does nothing in multi-line fields.
  • Changed: The second argument for setMouseScrollSpeed() is now optional.
  • Fixed "pressing Home on wrapped lines does nothing". It now navigates to before the soft line wrap.
  • Fixed "pressing Escape does not stop the dragging".

Re: InputField - text input handling library

Posted: Thu Aug 18, 2022 2:03 pm
by ReFreezed
Update 3.3.1

Changes since 3.3:
  • Changed: scroll() now returns how much was actually scrolled.
  • Changed: wheelmoved() now only returns true if any scrolling actually happened.
  • Fixed "font filtering blocks newlines in multi-line fields".
  • Fixed "undo/redo counts as editing text even when nothing happened".
(A bit of a delayed release since not much changed.)

Re: InputField - proper text input handling library

Posted: Sat May 20, 2023 2:13 am
by togFox
Fantastic library that I finally got to use. It took me way too long to find this essential function:

field:getText( )

Suggest you add that to an example or on the main doc.

Thanks a lot! :)

Re: InputField - proper text input handling library

Posted: Thu Jul 06, 2023 12:06 pm
by togFox
I tried to find a way for InputField to support different font sizes and different fonts (font types).

Is that an easy thing for me to add to my local version?