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 GitHub
parent 1e5e62d6e3
commit 71691634e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -664,7 +664,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 = "";