mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-23 19:46:34 +00:00
Codechange: make EventState a scoped enum
This commit is contained in:
+3
-3
@@ -239,7 +239,7 @@ struct IConsoleWindow : Window
|
||||
|
||||
EventState OnKeyPress([[maybe_unused]] char32_t key, uint16_t keycode) override
|
||||
{
|
||||
if (_focused_window != this) return ES_NOT_HANDLED;
|
||||
if (_focused_window != this) return EventState::NotHandled;
|
||||
|
||||
const int scroll_height = (this->height / this->line_height) - 1;
|
||||
switch (keycode) {
|
||||
@@ -311,12 +311,12 @@ struct IConsoleWindow : Window
|
||||
IConsoleResetHistoryPos();
|
||||
this->SetDirty();
|
||||
} else {
|
||||
return ES_NOT_HANDLED;
|
||||
return EventState::NotHandled;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ES_HANDLED;
|
||||
return EventState::Handled;
|
||||
}
|
||||
|
||||
void InsertTextString(WidgetID, std::string_view str, bool marked, std::optional<size_t> caret, std::optional<size_t> insert_location, std::optional<size_t> replacement_end) override
|
||||
|
||||
Reference in New Issue
Block a user