perf, sched migration: Fix key bindings
authorNikhil Rao <ncrao@google.com>
Thu, 22 Jul 2010 02:46:11 +0000 (19:46 -0700)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 1 Aug 2010 23:31:55 +0000 (01:31 +0200)
EVT_KEY_DOWN and EVT_LEFT_DOWN events are not bound to the RootFrame
event handler. As a result, zoom/scroll via keyboard events do not
work. This patch adds the missing bindings.

Signed-off-by: Nikhil Rao <ncrao@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
tools/perf/scripts/python/sched-migration.py

index e9898c5..8b8fb7c 100644 (file)
@@ -54,6 +54,8 @@ class RootFrame(wx.Frame):
                self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
                self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
                self.scroll.Bind(wx.EVT_PAINT, self.on_paint)
+               self.scroll.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
+               self.scroll.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
 
                self.scroll.Fit()
                self.Fit()