mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2025-12-25 10:50:03 +01:00
Exit with the code 2 when the user has cancelled picking a color
This commit is contained in:
parent
b0c0db66fa
commit
98fdeb1523
1 changed files with 2 additions and 2 deletions
|
|
@ -571,9 +571,9 @@ void CHyprpicker::initKeyboard() {
|
|||
|
||||
if (m_pXKBState) {
|
||||
if (xkb_state_key_get_one_sym(m_pXKBState, key + 8) == XKB_KEY_Escape)
|
||||
finish();
|
||||
finish(2);
|
||||
} else if (key == 1) // Assume keycode 1 is escape
|
||||
finish();
|
||||
finish(2);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue