The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix selection in overview

These changes was commited to the Birdfont repository Sat, 14 Mar 2015 13:41:31 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 14 Mar 2015 13:41:31 +0000 (14:41 +0100)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sat, 14 Mar 2015 13:41:31 +0000 (14:41 +0100)
commit c63a90f35f4324bd5330fd70e3485b864d20b14c
tree d215ac2c9c88d791cdae03aa00f0171980aa71dd
parent f2bc0ccf088523249bdf7c9b8711e0aa7ed21144
Fix selection in overview

libbirdfont/OverView.vala
--- a/libbirdfont/OverView.vala +++ b/libbirdfont/OverView.vala @@ -683,42 +683,51 @@ case Key.UP: key_up (); + selected_item = get_selected_item (); return; case Key.RIGHT: key_right (); + selected_item = get_selected_item (); return; case Key.LEFT: key_left (); + selected_item = get_selected_item (); return; case Key.DOWN: key_down (); + selected_item = get_selected_item (); return; case Key.PG_UP: for (int i = 0; i < rows; i++) { key_up (); } + selected_item = get_selected_item (); return; case Key.PG_DOWN: for (int i = 0; i < rows; i++) { key_down (); } + selected_item = get_selected_item (); return; case Key.DEL: delete_selected_glyph (); + selected_item = get_selected_item (); return; case Key.BACK_SPACE: delete_selected_glyph (); + selected_item = get_selected_item (); return; } scroll_to_char (keyval); + selected_item = get_selected_item (); } public void delete_selected_glyph () {