We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c2457 commit 414b4c3Copy full SHA for 414b4c3
src/xrGame/ui/UIActorMenu_action.cpp
@@ -419,22 +419,12 @@ bool CUIActorMenu::OnKeyboardAction(int dik, EUIMessages keyboard_action)
419
return true;
420
}
421
422
- if (IsBinded(kINVENTORY, dik))
+ if (IsBinded(kQUIT, dik) || IsBinded(kINVENTORY, dik) ||
423
+ IsBinded(kUI_BACK, dik, EKeyContext::UI))
424
{
425
if (WINDOW_KEY_PRESSED == keyboard_action)
426
- g_btnHint->Discard();
427
- HideDialog();
428
- }
429
- return true;
430
431
-
432
- if (IsBinded(kQUIT, dik) || IsBinded(kUI_BACK, dik, EKeyContext::UI))
433
- {
434
- if (WINDOW_KEY_PRESSED == keyboard_action)
435
436
437
+ OnBtnExitClicked(this, nullptr);
438
439
440
0 commit comments