diff --git a/aegisub/src/hotkey.cpp b/aegisub/src/hotkey.cpp index 06e5a0a511e6aff75b2c3012266190b16a52ec49..fb115ac0df591dafeed3be45fe1909fff838ddd4 100644 --- a/aegisub/src/hotkey.cpp +++ b/aegisub/src/hotkey.cpp @@ -49,6 +49,12 @@ namespace { { 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]) { agi::hotkey::Hotkey::HotkeyMap hk_map = hotkey::inst->GetHotkeyMap(); @@ -119,6 +125,8 @@ void init() { migrate_hotkeys(removed_commands_6294, added_hotkeys_6294); if (last_version < 6933) rename_commands(); + if (last_version < 7035) + migrate_hotkeys(removed_commands_7035, added_hotkeys_7035); } void clear() { diff --git a/aegisub/src/libresrc/default_hotkey.json b/aegisub/src/libresrc/default_hotkey.json index ff7c6371a01c2af5d1891ad47be5e0f8336203a0..a839be806d1f0862fd8c2b565178699fb396e894 100644 --- a/aegisub/src/libresrc/default_hotkey.json +++ b/aegisub/src/libresrc/default_hotkey.json @@ -293,6 +293,12 @@ }, "Audio" : { + "audio/play/line" : [ + { + "modifiers" : [], + "key" : "R" + } + ], "audio/play/selection" : [ { "modifiers" : [], diff --git a/aegisub/src/libresrc/osx/default_hotkey.json b/aegisub/src/libresrc/osx/default_hotkey.json index ea0dc0df2702600a4338d35fe7f6d9570686418c..64a2ee90d6ec01770d4bb0f441c095336bdbf578 100644 --- a/aegisub/src/libresrc/osx/default_hotkey.json +++ b/aegisub/src/libresrc/osx/default_hotkey.json @@ -303,6 +303,12 @@ }, "Audio" : { + "audio/play/line" : [ + { + "modifiers" : [], + "key" : "R" + } + ], "audio/play/selection" : [ { "modifiers" : [],