[accerciser: 2/4] ipython_view: Use 'GDK_KEY_c' constant
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser: 2/4] ipython_view: Use 'GDK_KEY_c' constant
- Date: Wed, 3 Aug 2022 09:40:17 +0000 (UTC)
commit d6cc2f839512da4aa41ae32794cf2228b7b8680c
Author: Michael Weghorn <m weghorn posteo de>
Date: Wed Aug 3 10:16:58 2022 +0200
ipython_view: Use 'GDK_KEY_c' constant
This makes it a bit more readable/clearer that this is
about pressing Ctrl+c.
plugins/ipython_view.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/ipython_view.py b/plugins/ipython_view.py
index a08ab7e..832bbba 100755
--- a/plugins/ipython_view.py
+++ b/plugins/ipython_view.py
@@ -649,7 +649,7 @@ class IPythonView(ConsoleView, IterableIPShell):
@return: True if event should not trickle.
@rtype: boolean
'''
- if event.state & gdk.ModifierType.CONTROL_MASK and event.keyval == 99:
+ if event.state & gdk.ModifierType.CONTROL_MASK and event.keyval == gdk.KEY_c:
self.interrupt = True
self._processLine()
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]