summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/selector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tool/selector.cpp')
-rw-r--r--src/ui/tool/selector.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/tool/selector.cpp b/src/ui/tool/selector.cpp
index 86ad05515..6820b7635 100644
--- a/src/ui/tool/selector.cpp
+++ b/src/ui/tool/selector.cpp
@@ -19,6 +19,10 @@
#include <gdk/gdkkeysyms.h>
+#if !GTK_CHECK_VERSION(2,22,0)
+#define GDK_KEY_Escape 0xff1b
+#endif
+
namespace Inkscape {
namespace UI {
@@ -49,7 +53,7 @@ public:
protected:
virtual bool _eventHandler(SPEventContext *event_context, GdkEvent *event) {
- if (event->type == GDK_KEY_PRESS && shortcut_key(event->key) == GDK_Escape &&
+ if (event->type == GDK_KEY_PRESS && shortcut_key(event->key) == GDK_KEY_Escape &&
sp_canvas_item_is_visible(_rubber))
{
_cancel = true;