commit 77cf8048a34975dd00369410c07d951796d04301 parent f78163870d0168de2f28b388543e13573c3fa8a6 Author: cfillion <cfillion@users.noreply.github.com> Date: Tue, 17 Oct 2017 10:58:03 -0400 browser: pass all up/down arrow keypresses to the list Diffstat:
M | src/browser.cpp | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/browser.cpp b/src/browser.cpp @@ -203,8 +203,12 @@ void Browser::onCommand(const int id, const int event) bool Browser::onKeyDown(const int key, const int mods) { - if(GetFocus() != m_list->handle()) + if(GetFocus() != m_list->handle()) { + if(key == VK_UP || key == VK_DOWN) + SetFocus(m_list->handle()); + return false; + } if(mods == CtrlModifier && key == 'A') m_list->selectAll();