From dbdb28962362626a729fc052ee8c8934466b8396 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 17 Sep 2019 22:46:16 +0300 Subject: [PATCH] Add page up/down navigation to Entry --- source/entry.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/entry.cpp b/source/entry.cpp index 6554f7c..606f447 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -298,6 +298,18 @@ bool Entry::key_press(unsigned key, unsigned mod) text.offset_to_coords(edit_pos, row, col); set_edit_position(text.coords_to_offset(row, 0), mod==MOD_SHIFT); } + else if(key==Input::KEY_PGUP) + { + unsigned row, col; + text.offset_to_coords(edit_pos, row, col); + set_edit_position(text.coords_to_offset((row