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

This commit is contained in:
Thomas Goyne 2012-10-04 16:56:02 -07:00
parent d97ad27354
commit 1cd9f2dcf2
3 changed files with 20 additions and 0 deletions

View file

@ -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() {
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() {

View file

@ -293,6 +293,12 @@
}, },
"Audio" : { "Audio" : {
"audio/play/line" : [
{
"modifiers" : [],
"key" : "R"
}
],
"audio/play/selection" : [ "audio/play/selection" : [
{ {
"modifiers" : [], "modifiers" : [],

View file

@ -303,6 +303,12 @@
}, },
"Audio" : { "Audio" : {
"audio/play/line" : [
{
"modifiers" : [],
"key" : "R"
}
],
"audio/play/selection" : [ "audio/play/selection" : [
{ {
"modifiers" : [], "modifiers" : [],