From 313ce9c35fe234e6c322b709dd89f26468eeb0cb Mon Sep 17 00:00:00 2001 From: Arthur Sonzogni Date: Wed, 20 Oct 2021 21:15:40 +0200 Subject: [PATCH] Add support for PageUp/PageDown/Home/End buttons. (#242) See: https://github.com/ArthurSonzogni/FTXUI/issues/241 --- src/ftxui/component/container.cpp | 16 ++++++++++++++++ src/ftxui/component/menu.cpp | 8 ++++++++ src/ftxui/component/radiobox.cpp | 8 ++++++++ 3 files changed, 32 insertions(+) diff --git a/src/ftxui/component/container.cpp b/src/ftxui/component/container.cpp index 4521295..40e04ec 100644 --- a/src/ftxui/component/container.cpp +++ b/src/ftxui/component/container.cpp @@ -101,6 +101,22 @@ class VerticalContainer : public ContainerBase { MoveSelector(-1); if (event == Event::ArrowDown || event == Event::Character('j')) MoveSelector(+1); + if (event == Event::PageUp) { + for(int i = 0; i