forked from mia/Aegisub
Actually trigger a hotkey if it exists.
Originally committed to SVN as r5128.
This commit is contained in:
parent
9915fb1c3b
commit
2804e0cb52
2 changed files with 5 additions and 3 deletions
|
@ -94,10 +94,10 @@ public:
|
|||
void DetachVideo(bool detach=true);
|
||||
void LoadVFR(wxString filename);
|
||||
|
||||
private:
|
||||
|
||||
agi::Context temp_context;
|
||||
|
||||
private:
|
||||
|
||||
void cmd_call(wxCommandEvent& event);
|
||||
|
||||
AssFile *ass;
|
||||
|
|
|
@ -36,7 +36,8 @@
|
|||
#include "aegisub/toolbar.h"
|
||||
#include "libresrc/libresrc.h"
|
||||
#include "command/command.h"
|
||||
|
||||
#include "frame_main.h"
|
||||
#include "main.h"
|
||||
|
||||
namespace hotkey {
|
||||
|
||||
|
@ -68,6 +69,7 @@ void check(std::string context, int key_code, wchar_t key_char, int modifier) {
|
|||
|
||||
std::string command;
|
||||
if (agi::hotkey::hotkey->Scan(context, combo, command) == 0) {
|
||||
(*cmd::get(command))(&wxGetApp().frame->temp_context);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue