added shortcuts to refresh browsers

This commit is contained in:
oy 2015-11-15 17:25:18 +01:00
parent 274c222051
commit a00fbf1121
2 changed files with 2 additions and 2 deletions

View file

@ -1583,7 +1583,7 @@ void CMenus::RenderServerbrowserBottomBox(CUIRect MainView)
MainView.HSplitTop(25.0f, &MainView, 0);
MainView.VSplitLeft(ButtonWidth, &Button, &MainView);
static int s_RefreshButton=0;
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button))
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button) || (Input()->KeyPress(KEY_R) && (Input()->KeyIsPressed(KEY_LCTRL) || Input()->KeyIsPressed(KEY_RCTRL))))
{
if(m_MenuPage == PAGE_INTERNET)
ServerBrowser()->Refresh(IServerBrowser::REFRESHFLAG_INTERNET);

View file

@ -464,7 +464,7 @@ void CMenus::RenderDemoList(CUIRect MainView)
BottomView.HSplitTop(25.0f, &BottomView, 0);
BottomView.VSplitLeft(ButtonWidth, &Button, &BottomView);
static int s_RefreshButton = 0;
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button))
if(DoButton_Menu(&s_RefreshButton, Localize("Refresh"), 0, &Button) || (Input()->KeyPress(KEY_R) && (Input()->KeyIsPressed(KEY_LCTRL) || Input()->KeyIsPressed(KEY_RCTRL))))
{
DemolistPopulate();
DemolistOnUpdate(false);