UI: Get rid of redundant UI_BUT_IMMEDIATE button flag

This flag was used to activate the hotkey input buttons (e.g. for
"Assign Shortcut") when opened in a popup. Since this was added, other
more generalized ways of getting this same behavior were implemented.
Had to tweak the hotkey button event handling a bit, but it seems to
behave exactly as before now.
This commit is contained in:
2022-05-20 16:27:08 +02:00
parent de561280fc
commit 8d65895af8
4 changed files with 8 additions and 19 deletions

View File

@@ -202,7 +202,7 @@ enum {
UI_BUT_INACTIVE = 1 << 18,
UI_BUT_LAST_ACTIVE = 1 << 19,
UI_BUT_UNDO = 1 << 20,
UI_BUT_IMMEDIATE = 1 << 21,
/* UNUSED = 1 << 21, */
UI_BUT_NO_UTF8 = 1 << 22,
/** For popups, pressing return activates this button, overriding the highlighted button.