1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Disable double-click -> ESC translation for main menu

This commit is contained in:
Craig Robbins 2015-03-14 19:55:35 +10:00
parent 0e93eefb8f
commit de6d5ce2cd
3 changed files with 25 additions and 12 deletions

View file

@ -210,8 +210,8 @@ public:
ISimpleTextureSource *tsrc,
IFormSource* fs_src,
TextDest* txt_dst,
Client* client
);
Client* client,
bool remap_dbl_click = true);
~GUIFormSpecMenu();
@ -436,6 +436,14 @@ private:
std::wstring m_JavaDialogFieldName;
#endif
/* If true, remap a double-click (or double-tap) action to ESC. This is so
* that, for example, Android users can double-tap to close a formspec.
*
* This value can (currently) only be set by the class constructor
* and the default value for the setting is true.
*/
bool m_remap_dbl_click;
};
class FormspecFormSource: public IFormSource