diff options
author | Rubidium <rubidium@openttd.org> | 2021-04-18 20:29:46 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-04-21 21:12:08 +0200 |
commit | bf4fe19a6684231d04764c3bee5ed51e4124a925 (patch) | |
tree | c8b7d662f3ed0ecc236ea894c9a51279e80dfbc2 /src/widget_type.h | |
parent | b3495f1a1323eb6d236c6fecb1127a0bd716a4d5 (diff) | |
download | openttd-bf4fe19a6684231d04764c3bee5ed51e4124a925.tar.xz |
Codechange: merge duplicated logic to scroll in lists by key into a single function
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 1692ef226..c88727a2f 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -749,6 +749,7 @@ public: } int GetScrolledRowFromWidget(int clickpos, const Window * const w, int widget, int padding = 0, int line_height = -1) const; + EventState UpdateListPositionOnKeyPress(int &list_position, uint16 keycode) const; }; /** |