add a second Delete action, so both Backspace and Delete can be bound to delete. this is really useful on macbooks which have a backspace but no delete key. to turn on this behavior, users will have to add the new editor-alternate-delete action to theri bindings, OR go to Preferences->Mouse/Key and re-load one of the default bindings files
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9232 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cfe3c891de
commit
6902a46144
|
@ -119,7 +119,8 @@
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/editor-delete" "BackSpace")
|
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
||||||
|
(gtk_accel_path "<Actions>/Editor/editor-alternate-delete" "BackSpace")
|
||||||
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>Delete")
|
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>Delete")
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
||||||
|
|
|
@ -118,7 +118,8 @@
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/editor-delete" "BackSpace")
|
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
||||||
|
(gtk_accel_path "<Actions>/Editor/editor-alternate-delete" "BackSpace")
|
||||||
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>BackSpace")
|
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>BackSpace")
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
||||||
|
|
|
@ -117,7 +117,8 @@
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/editor-delete" "BackSpace")
|
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
||||||
|
(gtk_accel_path "<Actions>/Editor/editor-alternate-delete" "BackSpace")
|
||||||
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>Delete")
|
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>Delete")
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
||||||
|
|
|
@ -116,7 +116,8 @@
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/editor-delete" "BackSpace")
|
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
||||||
|
(gtk_accel_path "<Actions>/Editor/editor-alternate-delete" "BackSpace")
|
||||||
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>BackSpace")
|
(gtk_accel_path "<Actions>/Editor/remove-last-capture" "<%PRIMARY%>BackSpace")
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-previous-region-boundary-noselection" "<%LEVEL4%>leftarrow")
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<ui>
|
<ui>
|
||||||
|
|
||||||
|
<accelerator action='editor-alternate-delete'/>
|
||||||
|
|
||||||
<menubar name='Main' action='MainMenu'>
|
<menubar name='Main' action='MainMenu'>
|
||||||
<menu name='Session' action='Session'>
|
<menu name='Session' action='Session'>
|
||||||
<menuitem action='New'/>
|
<menuitem action='New'/>
|
||||||
|
|
|
@ -553,6 +553,8 @@ Editor::register_actions ()
|
||||||
/* Note: for now, editor-delete does the exact same thing as editor-cut */
|
/* Note: for now, editor-delete does the exact same thing as editor-cut */
|
||||||
act = ActionManager::register_action (editor_actions, "editor-delete", _("Delete"), mem_fun(*this, &Editor::cut));
|
act = ActionManager::register_action (editor_actions, "editor-delete", _("Delete"), mem_fun(*this, &Editor::cut));
|
||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
|
act = ActionManager::register_action (editor_actions, "editor-alternate-delete", _("Delete (Backspace)"), mem_fun(*this, &Editor::cut));
|
||||||
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
act = ActionManager::register_action (editor_actions, "editor-copy", _("Copy"), mem_fun(*this, &Editor::copy));
|
act = ActionManager::register_action (editor_actions, "editor-copy", _("Copy"), mem_fun(*this, &Editor::copy));
|
||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
act = ActionManager::register_action (editor_actions, "editor-paste", _("Paste"), mem_fun(*this, &Editor::keyboard_paste));
|
act = ActionManager::register_action (editor_actions, "editor-paste", _("Paste"), mem_fun(*this, &Editor::keyboard_paste));
|
||||||
|
|
|
@ -284,7 +284,8 @@
|
||||||
; (gtk_accel_path "<Actions>/options/FileHeaderFormatCAF" "")
|
; (gtk_accel_path "<Actions>/options/FileHeaderFormatCAF" "")
|
||||||
(gtk_accel_path "<Actions>/Common/ToggleLocations" "<%WINDOW%>l")
|
(gtk_accel_path "<Actions>/Common/ToggleLocations" "<%WINDOW%>l")
|
||||||
; (gtk_accel_path "<Actions>/Editor/ToggleGeneric MIDISurface" "")
|
; (gtk_accel_path "<Actions>/Editor/ToggleGeneric MIDISurface" "")
|
||||||
(gtk_accel_path "<Actions>/Editor/editor-delete" "BackSpace")
|
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
||||||
|
(gtk_accel_path "<Actions>/Editor/editor-alternate-delete" "BackSpace")
|
||||||
; (gtk_accel_path "<Actions>/JACK/JACKLatency256" "")
|
; (gtk_accel_path "<Actions>/JACK/JACKLatency256" "")
|
||||||
(gtk_accel_path "<Actions>/Editor/select-all-between-cursors" "F16")
|
(gtk_accel_path "<Actions>/Editor/select-all-between-cursors" "F16")
|
||||||
; (gtk_accel_path "<Actions>/Editor/LayerAddHigher" "")
|
; (gtk_accel_path "<Actions>/Editor/LayerAddHigher" "")
|
||||||
|
|
|
@ -140,6 +140,7 @@
|
||||||
(gtk_accel_path "<Actions>/Transport/GotoStart" "Home")
|
(gtk_accel_path "<Actions>/Transport/GotoStart" "Home")
|
||||||
(gtk_accel_path "<Actions>/Transport/GotoEnd" "End")
|
(gtk_accel_path "<Actions>/Transport/GotoEnd" "End")
|
||||||
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
(gtk_accel_path "<Actions>/Editor/editor-delete" "Delete")
|
||||||
|
(gtk_accel_path "<Actions>/Editor/editor-alternate-delete" "BackSpace")
|
||||||
|
|
||||||
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
(gtk_accel_path "<Actions>/Editor/playhead-to-edit" "Return")
|
||||||
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
(gtk_accel_path "<Actions>/Editor/edit-to-playhead" "<%SECONDARY%>Return")
|
||||||
|
|
Loading…
Reference in New Issue