InputMask v5.0.0 Release Notes

Release Date: 2019-09-18 // about 5 years ago
  • ✂ 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.