mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@13921 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ea3e37e854
commit
d1b98bdc3f
1 changed files with 2 additions and 12 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue