Skip to content
Extraits de code Groupes Projets
Valider 1cd9f2dc rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Add a default hotkey for "audio/play/line"

parent d97ad273
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -49,6 +49,12 @@ namespace { ...@@ -49,6 +49,12 @@ namespace {
{ 0 } { 0 }
}; };
const char *removed_commands_7035[] = { 0 };
const char *added_hotkeys_7035[][4] = {
{ "audio/play/line", "Audio", "R", 0 },
{ 0 }
};
void migrate_hotkeys(const char *removed[], const char *added[][4]) { void migrate_hotkeys(const char *removed[], const char *added[][4]) {
agi::hotkey::Hotkey::HotkeyMap hk_map = hotkey::inst->GetHotkeyMap(); agi::hotkey::Hotkey::HotkeyMap hk_map = hotkey::inst->GetHotkeyMap();
...@@ -119,6 +125,8 @@ void init() { ...@@ -119,6 +125,8 @@ void init() {
migrate_hotkeys(removed_commands_6294, added_hotkeys_6294); migrate_hotkeys(removed_commands_6294, added_hotkeys_6294);
if (last_version < 6933) if (last_version < 6933)
rename_commands(); rename_commands();
if (last_version < 7035)
migrate_hotkeys(removed_commands_7035, added_hotkeys_7035);
} }
void clear() { void clear() {
......
...@@ -293,6 +293,12 @@ ...@@ -293,6 +293,12 @@
}, },
"Audio" : { "Audio" : {
"audio/play/line" : [
{
"modifiers" : [],
"key" : "R"
}
],
"audio/play/selection" : [ "audio/play/selection" : [
{ {
"modifiers" : [], "modifiers" : [],
......
...@@ -303,6 +303,12 @@ ...@@ -303,6 +303,12 @@
}, },
"Audio" : { "Audio" : {
"audio/play/line" : [
{
"modifiers" : [],
"key" : "R"
}
],
"audio/play/selection" : [ "audio/play/selection" : [
{ {
"modifiers" : [], "modifiers" : [],
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter