ARMORY-47: Fix cursor position on QLineEdit with an input mask
Used list comprehension to reduce a couple lines of code.