qt: Differentiate unknown Caps Lock state from off state
* qt/capslock.h (enum class LockState): New. * qt/capslock.h, qt/capslock_unix.cpp, qt/capslock_win.cpp (capsLockIsOn, capsLockState): Rename former to latter. Change return type to LockState. * qt/capslock_unix.cpp (capsLockState): Remove check for qApp. * qt/pinentrydialog.cpp (checkCapsLock): Adapt to changed function name and return type of capsLockIsOn/capsLockState.
This change allows the pinentry to ignore an unknown state of Caps Lock.
- GnuPG-bug-id: T4950