summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/gui/PatchCanvas.cpp21
-rw-r--r--src/libs/gui/ingen_gui.glade19
2 files changed, 18 insertions, 22 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp
index a787b1ae..0cd82ecb 100644
--- a/src/libs/gui/PatchCanvas.cpp
+++ b/src/libs/gui/PatchCanvas.cpp
@@ -475,32 +475,17 @@ PatchCanvas::canvas_event(GdkEvent* event)
bool
PatchCanvas::canvas_key_event(GdkEventKey* event)
{
- static bool control_modded = false;
-
switch (event->type) {
case GDK_KEY_PRESS:
switch (event->keyval) {
case GDK_Delete:
destroy_selection();
return true;
- case GDK_Control_L:
- case GDK_Control_R:
- if (_patch->get_editable() == true) {
- control_modded = true;
+ case GDK_e:
+ if (_patch->get_editable() == true)
_patch->set_editable(false);
- }
- return true;
- default:
- return false;
- }
- case GDK_KEY_RELEASE:
- switch (event->keyval) {
- case GDK_Control_L:
- case GDK_Control_R:
- if (_patch->get_editable() == false && control_modded) {
- control_modded = false;
+ else
_patch->set_editable(true);
- }
return true;
default:
return false;
diff --git a/src/libs/gui/ingen_gui.glade b/src/libs/gui/ingen_gui.glade
index e4f11624..d8ab7bb5 100644
--- a/src/libs/gui/ingen_gui.glade
+++ b/src/libs/gui/ingen_gui.glade
@@ -366,7 +366,20 @@
<property name="visible">True</property>
<property name="label" translatable="yes">Right-click the canvas to add objects</property>
<property name="use_underline">True</property>
- <signal name="activate" handler="on_right-click_the_canvas_to_add_objects1_activate"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image2135">
+ <property name="visible">True</property>
+ <property name="stock">gtk-info</property>
+ <property name="icon_size">1</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ <child>
+ <widget class="GtkImageMenuItem" id="help_e_to_edit_menu_item">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Press 'e' to toggle edit mode</property>
+ <property name="use_underline">True</property>
<child internal-child="image">
<widget class="GtkImage" id="image2135">
<property name="visible">True</property>
@@ -1474,9 +1487,7 @@
<widget class="GtkToggleToolButton" id="patch_view_edit_mode_but">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="tooltip" translatable="yes">Enable edit mode to move objects.
-Disable edit mode to play controls.
-Hold &lt;Ctrl&gt; to play controls in either mode.</property>
+ <property name="tooltip" translatable="yes">Enable edit mode to move objects and make connections, disable to play controls ('e' to toggle)</property>
<property name="label" translatable="yes">Edit</property>
<property name="stock_id">gtk-edit</property>
<property name="active">True</property>