.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@13921 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-01-21 08:44:38 +00:00
parent ea3e37e854
commit d1b98bdc3f

View file

@ -2,21 +2,11 @@
using namespace Upp;
void HotKey1()
{
PromptOK("HotKey1");
}
void HotKey2()
{
PromptOK("HotKey2");
}
GUI_APP_MAIN
{
TopWindow win;
int id = Ctrl::RegisterSystemHotKey(K_CTRL|K_F1, callback(HotKey1));
Ctrl::RegisterSystemHotKey(K_ALT|K_CTRL|K_SHIFT|K_A, callback(HotKey2));
int id = Ctrl::RegisterSystemHotKey(K_CTRL|K_F1, [] { PromptOK("Ctrl+F1"); });
Ctrl::RegisterSystemHotKey(K_ALT|K_CTRL|K_SHIFT|K_A, [] { PromptOK("Ctrl+Alt+Shift+A"); });
win.Run();
Ctrl::UnregisterSystemHotKey(id);
win.Run();