aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil Rao <ncrao@google.com>2010-07-21 22:46:11 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2010-08-01 19:31:55 -0400
commitbe6d947691376218e788418e2656fc9a3e43b9bc (patch)
tree8a6a5a641913e35d7bf3f988a53b924c7871c828
parent207f90fc4757adc732d5ac23ad11bb90dd078754 (diff)
perf, sched migration: Fix key bindings
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>
-rw-r--r--tools/perf/scripts/python/sched-migration.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/sched-migration.py b/tools/perf/scripts/python/sched-migration.py
index e9898c5dbcc8..8b8fb7c60991 100644
--- a/tools/perf/scripts/python/sched-migration.py
+++ b/tools/perf/scripts/python/sched-migration.py
@@ -54,6 +54,8 @@ class RootFrame(wx.Frame):
54 self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press) 54 self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
55 self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down) 55 self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
56 self.scroll.Bind(wx.EVT_PAINT, self.on_paint) 56 self.scroll.Bind(wx.EVT_PAINT, self.on_paint)
57 self.scroll.Bind(wx.EVT_KEY_DOWN, self.on_key_press)
58 self.scroll.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down)
57 59
58 self.scroll.Fit() 60 self.scroll.Fit()
59 self.Fit() 61 self.Fit()