input: allow KP_Enter for submitting

fixes #32
This commit is contained in:
Vaxry 2024-02-21 11:35:31 +00:00
parent 277a377eb2
commit 5c7b23eefb

View file

@ -450,7 +450,7 @@ void CHyprlock::onKey(uint32_t key) {
if (SYM == XKB_KEY_BackSpace) {
if (m_sPasswordState.passBuffer.length() > 0)
m_sPasswordState.passBuffer = m_sPasswordState.passBuffer.substr(0, m_sPasswordState.passBuffer.length() - 1);
} else if (SYM == XKB_KEY_Return) {
} else if (SYM == XKB_KEY_Return || SYM == XKB_KEY_KP_Enter) {
Debug::log(LOG, "Authenticating");
m_sPasswordState.result = g_pPassword->verify(m_sPasswordState.passBuffer);