X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;h=b00fc6bcdb3e4f4781b7bcb12dcd154a1de8cb61;hb=f110b0b16c4e305f009f233dafd0b279949638cd;hp=6554f7cb1b5ada9e52cf6cad423baedc9f30337d;hpb=2aa99730d8c3106deeac1186e057055604835752;p=libs%2Fgltk.git diff --git a/source/entry.cpp b/source/entry.cpp index 6554f7c..b00fc6b 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(value); if(first_row!=old_first_row) signal_scroll_position_changed.emit(first_row); + rebuild(); } }