summaryrefslogtreecommitdiff
path: root/src/querystring_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-28 20:54:56 +0000
committerfrosch <frosch@openttd.org>2012-11-28 20:54:56 +0000
commit155a9d784c84e2a69a4506b19e0d5204aebcebec (patch)
treeb5b84bd629fb15dd3b2aeb69e877efb6648e7a46 /src/querystring_gui.h
parent4c0671f65af64c1fcc1c0373cfa4e1be455b5787 (diff)
downloadopenttd-155a9d784c84e2a69a4506b19e0d5204aebcebec.tar.xz
(svn r24772) -Codechange: Call Window::OnEditboxChanged only when the content changes, not when only moving the cursor.
Diffstat (limited to 'src/querystring_gui.h')
-rw-r--r--src/querystring_gui.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/querystring_gui.h b/src/querystring_gui.h
index 8aea26d88..42facf70a 100644
--- a/src/querystring_gui.h
+++ b/src/querystring_gui.h
@@ -21,10 +21,11 @@
*/
enum HandleEditBoxResult
{
- HEBR_EDITING = 0, // Other key pressed.
- HEBR_CONFIRM, // Return or enter key pressed.
- HEBR_CANCEL, // Escape key pressed.
- HEBR_NOT_FOCUSED, // Edit box widget not focused.
+ HEBR_EDITING, ///< Editbox content changed.
+ HEBR_CURSOR, ///< Non-text change, e.g. cursor position.
+ HEBR_CONFIRM, ///< Return or enter key pressed.
+ HEBR_CANCEL, ///< Escape key pressed.
+ HEBR_NOT_FOCUSED, ///< Edit box widget not focused.
};
/**