Code

some keyboards (Apple) have no Insert; allow insert-node with Shift+I too
authorspeare <speare@users.sourceforge.net>
Sat, 7 Mar 2009 17:43:46 +0000 (17:43 +0000)
committerspeare <speare@users.sourceforge.net>
Sat, 7 Mar 2009 17:43:46 +0000 (17:43 +0000)
src/node-context.cpp

index 33b4a53e06c93dfe3d10d01f27f285f56aa1a99d..57af59bd4d8ce945d5d313c692936b5b05a8b480 100644 (file)
@@ -484,6 +484,14 @@ sp_node_context_root_handler(SPEventContext *event_context, GdkEvent *event)
                     se->add_node();
                     ret = TRUE;
                     break;
+                case GDK_I:
+                case GDK_i:
+                    // apple keyboards have no Insert
+                    if (MOD__SHIFT_ONLY) {
+                        se->add_node();
+                        ret = TRUE;
+                    }
+                    break;
                 case GDK_Delete:
                 case GDK_KP_Delete:
                 case GDK_BackSpace: