MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / OnKeyDown

Method OnKeyDown

engine/Poseidon/UI/Options/ScrollListPage.cpp:57–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool ScrollListPage::OnKeyDown(OptionsShell& shell, unsigned nChar)
58{
59 if (nChar == SDLK_ESCAPE)
60 {
61 shell.PopPage();
62 return true;
63 }
64 if (m_list && m_list->OnKeyDown(nChar))
65 return true;
66 return false;
67}
68
69void ScrollListPage::OnSimulate(OptionsShell& shell)
70{

Callers

nothing calls this directly

Calls 1

PopPageMethod · 0.80

Tested by

no test coverage detected