Clone in a terminal:
Commit 12164f8
Johan Mattsson - 2015-03-31T19:53:07+00:00
12164f86fec427c72ee38e497ad8f8804ccbc836johan.mattsson.m@gmail.com

Page up and down when changing keyboard focus

Changed files (1)

Diff

diff --git a/libbirdfont/DescriptionDisplay.vala b/libbirdfont/DescriptionDisplay.valaindex d538629..8e7f20e 100644--- a/libbirdfont/DescriptionDisplay.vala+++ b/libbirdfont/DescriptionDisplay.vala@@ -319,6 +319,23 @@ public class DescriptionDisplay : FontDisplay { 		if (!(0 <= focus_index < focus_ring.size)) { 			focus_index = 0; 		}+		+		if (w.widget_y < 0) {+			scroll -= allocation.height;++			if (scroll < 0) {+				scroll = 0;+			}			+		} else if (w.widget_y > allocation.height - 30 * MainWindow.units) {+			scroll += allocation.height;+			+			if (scroll + allocation.height >= content_height) {+				scroll = content_height - allocation.height;+			}			+		} ++		update_scrollbar ();+		GlyphCanvas.redraw (); 	} 	 	public override void button_release (int button, double x, double y) {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112