Add ctrl+a as binding to clear password (#832)

This commit is contained in:
Ben Leynen 2025-07-29 15:07:45 +02:00 committed by Felix Salcher
parent c67b58f9e1
commit c220c2b35b
No known key found for this signature in database

View file

@ -665,7 +665,7 @@ void CHyprlock::onKey(uint32_t key, bool down) {
void CHyprlock::handleKeySym(xkb_keysym_t sym, bool composed) {
const auto SYM = sym;
if (SYM == XKB_KEY_Escape || (m_bCtrl && (SYM == XKB_KEY_u || SYM == XKB_KEY_BackSpace))) {
if (SYM == XKB_KEY_Escape || (m_bCtrl && (SYM == XKB_KEY_u || SYM == XKB_KEY_BackSpace || SYM == XKB_KEY_a))) {
Debug::log(LOG, "Clearing password buffer");
m_sPasswordState.passBuffer = "";