1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Key settings: Clear with escape (#8282)

Key ESCAPE -> Cancel change
Key DELETE -> Remove entry
This commit is contained in:
SmallJoker
2020-02-14 20:36:58 +01:00
committed by GitHub
parent 71899e11d2
commit ee7d357602
2 changed files with 45 additions and 52 deletions

View File

@@ -70,9 +70,8 @@ private:
void add_key(int id, const wchar_t *button_name, const std::string &setting_name);
bool shift_down = false;
s32 activeKey = -1;
std::vector<KeyPress> key_used;
key_setting *active_key = nullptr;
gui::IGUIStaticText *key_used_text = nullptr;
std::vector<key_setting *> key_settings;
};