[gedit] Fixed python console key press event
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fixed python console key press event
- Date: Wed, 23 Mar 2011 21:32:31 +0000 (UTC)
commit ba74278347888e4a16f3a0fee2a359b7f2bcde8b
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Wed Mar 23 22:31:44 2011 +0100
Fixed python console key press event
plugins/pythonconsole/pythonconsole/console.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/pythonconsole/pythonconsole/console.py b/plugins/pythonconsole/pythonconsole/console.py
index b37b469..ac57368 100644
--- a/plugins/pythonconsole/pythonconsole/console.py
+++ b/plugins/pythonconsole/pythonconsole/console.py
@@ -149,7 +149,7 @@ class PythonConsole(Gtk.ScrolledWindow):
def __key_press_event_cb(self, view, event):
modifier_mask = Gtk.accelerator_get_default_mod_mask()
- event_state = event.key.state & modifier_mask
+ event_state = event.state & modifier_mask
if event.keyval == Gdk.KEY_D and event_state == Gdk.ModifierType.CONTROL_MASK:
self.destroy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]