From 90508237b1778a1117943d2252fd27628cc4bbe8 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Fri, 20 Mar 2020 11:58:22 +0400 Subject: [PATCH] Make slider control in the wait window to be a more intuitive --- apps/openmw/mwgui/waitdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/waitdialog.cpp b/apps/openmw/mwgui/waitdialog.cpp index d18eaebdd0..64f9122986 100644 --- a/apps/openmw/mwgui/waitdialog.cpp +++ b/apps/openmw/mwgui/waitdialog.cpp @@ -227,9 +227,9 @@ namespace MWGui void WaitDialog::onKeyButtonPressed(MyGUI::Widget *sender, MyGUI::KeyCode key, MyGUI::Char character) { - if (key == MyGUI::KeyCode::ArrowDown) + if (key == MyGUI::KeyCode::ArrowUp) mHourSlider->setScrollPosition(std::min(mHourSlider->getScrollPosition()+1, mHourSlider->getScrollRange()-1)); - else if (key == MyGUI::KeyCode::ArrowUp) + else if (key == MyGUI::KeyCode::ArrowDown) mHourSlider->setScrollPosition(std::max(static_cast(mHourSlider->getScrollPosition())-1, 0)); else return;