Skip to content

the 'reverse' mask is not ignoring the arrows 'ignoreKeys' #80

@tombrito

Description

@tombrito

If you copy the:

        	this.ignore = $.inArray(o.nKey, this.ignoreKeys) > -1 || ((e.ctrlKey || e.metaKey || e.altKey) && e.key);
        	if (this.ignore) return true;

from _onKeyDown to _onKeyUp, you'll will fix it. The keys will be ignored.
But, one more thing: still need to keep the caret position when I type a char in the middle of the string/number.
e.g. '1234', with caret at position 2, when I type a number, the caret will go to the end (for 'reverse' masks)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions