summaryrefslogtreecommitdiffstats
path: root/src/Canvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Canvas.cpp')
-rw-r--r--src/Canvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 8b5168f..1de5269 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -42,6 +42,8 @@ PATCHAGE_DISABLE_FMT_WARNINGS
#include <fmt/ostream.h>
PATCHAGE_RESTORE_WARNINGS
+#include <gdk/gdkkeysyms.h>
+
#include <cassert>
#include <iosfwd>
#include <set>
@@ -302,7 +304,7 @@ disconnect_edge(GanvEdge* edge, void* data)
bool
Canvas::on_event(GdkEvent* ev)
{
- if (ev->type == GDK_KEY_PRESS && ev->key.keyval == GDK_Delete) {
+ if (ev->type == GDK_KEY_PRESS && ev->key.keyval == GDK_KEY_Delete) {
for_each_selected_edge(disconnect_edge, this);
clear_selection();
return true;