diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 23:11:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 23:11:06 +0000 |
commit | d284ba228327b83b74a5bf2448406f9021f67c8b (patch) | |
tree | cdbaf12f7c5a7666ecc23983c51dca268e3b58e2 /src/news_gui.cpp | |
parent | b101faea201219afd52f6a743dad244c1c33b991 (diff) | |
download | openttd-d284ba228327b83b74a5bf2448406f9021f67c8b.tar.xz |
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index 5f7faa26d..06b1e1905 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -308,14 +308,14 @@ struct NewsWindow : Window { } } - virtual bool OnKeyPress(uint16 key, uint16 keycode) + virtual EventState OnKeyPress(uint16 key, uint16 keycode) { if (keycode == WKC_SPACE) { /* Don't continue. */ delete this; - return false; + return ES_HANDLED; } - return true; + return ES_NOT_HANDLED; } virtual void OnInvalidateData(int data) |