InputMask v6.0.0 Release Notes

Release Date: 2020-03-16 // over 2 years ago
  • ✂ Removed:

    • Mask::apply(), the autocomplete flag

    This flag is now a part of the CaretGravity.FORWARD.


    • CaretGravity is now a sealed class

    ➕ Added:

    • CaretGravity.FORWARD, the autocomplete flag
    • CaretGravity.BACKWARD, the autoskip flag

Previous changes from v5.0.0

  • ✂ Removed:

    • CaretStringIterator::beforeCaret()

    This method is now replaced with ::insertionAffectsCaret() and ::deletionAffectsCaret() calls.

    ➕ Added:

    • CaretString instances now contain caret gravity.

    🚚 Caret gravity affects caret movement when Mask adds characters precisely at the caret position during formatting. It is important to retain caret position after text deletion/backspacing.

    0️⃣ Default CaretGravity is .FORWARD. Set caret gravity to .BACKWARD only when user hits backspace.

    • CaretStringIterator::insertionAffectsCaret() and CaretStringIterator::deletionAffectsCaret()

    These methods allow to incorporate new caret gravity setting.

    • Right-to-left masks.