X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;h=606f447b68c99ffdf8da7fce0495ed4709a73610;hb=dbdb28962362626a729fc052ee8c8934466b8396;hp=6554f7cb1b5ada9e52cf6cad423baedc9f30337d;hpb=cfb830ca263defc307f9cfac74fb6771f6b7bfc6;p=libs%2Fgltk.git 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