Skip to content

AFPercent_Keystroke and AFNumber_Keystroke methods implemented

AFNumber_Keystroke is a method that is used for validating keystrokes when entering data in a numerical field. AFPercent_Keystroke is used in percentage fields and thus also accepts numerical data and can use AFNumber_Keystroke. This MR creates a regex based implementation.

Tests for rejecting strings upon entering invalid strings during committing keystroke event need to be added, and can be done once MR 985 is merged.

This code is dependent upon code from MR 987, mostly for the code added for autotests.

Edited by Pratham Gandhi

Merge request reports