From de6d5ce2cd68cf43ded6f739e58af7de4ef5e28f Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Sat, 14 Mar 2015 19:55:35 +1000 Subject: Disable double-click -> ESC translation for main menu --- src/guiFormSpecMenu.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/guiFormSpecMenu.h') diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index 2074fb780..73dc7af62 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -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 -- cgit v1.2.3