Add default hotkeys for the color buttons
This commit is contained in:
parent
b3486440f3
commit
983d0b19eb
|
@ -55,6 +55,15 @@ namespace {
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const char *removed_commands_7070[] = { 0 };
|
||||||
|
const char *added_hotkeys_7070[][4] = {
|
||||||
|
{ "edit/color/primary", "Subtitle Edit Box", "Alt", "1" },
|
||||||
|
{ "edit/color/secondary", "Subtitle Edit Box", "Alt", "2" },
|
||||||
|
{ "edit/color/outline", "Subtitle Edit Box", "Alt", "3" },
|
||||||
|
{ "edit/color/shadow", "Subtitle Edit Box", "Alt", "4" },
|
||||||
|
{ 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();
|
||||||
|
|
||||||
|
@ -127,6 +136,8 @@ void init() {
|
||||||
rename_commands();
|
rename_commands();
|
||||||
if (last_version < 7035)
|
if (last_version < 7035)
|
||||||
migrate_hotkeys(removed_commands_7035, added_hotkeys_7035);
|
migrate_hotkeys(removed_commands_7035, added_hotkeys_7035);
|
||||||
|
if (last_version < 7070)
|
||||||
|
migrate_hotkeys(removed_commands_7070, added_hotkeys_7070);
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear() {
|
void clear() {
|
||||||
|
|
|
@ -603,6 +603,30 @@
|
||||||
"modifiers" : [],
|
"modifiers" : [],
|
||||||
"key" : "Enter"
|
"key" : "Enter"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"edit/color/primary" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit/color/secondary" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit/color/outline" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit/color/shadow" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "4"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -613,6 +613,30 @@
|
||||||
"modifiers" : [],
|
"modifiers" : [],
|
||||||
"key" : "Enter"
|
"key" : "Enter"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"edit/color/primary" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit/color/secondary" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit/color/outline" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"edit/color/shadow" : [
|
||||||
|
{
|
||||||
|
"modifiers" : [ "Alt" ],
|
||||||
|
"key" : "4"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue