Hello All,
I have registered a hot key using:
RegisterEventHotKey(49,cmdKey + shiftKey , myHotKeyID, GetApplicationEventTarget(), 0, &myHotKeyRef);
here the modifiers are written as cmdKey + shiftKey.
Now i have taken my NSTextField subclass which is trapping hotkey pressed on it. Now i want to register this new hot key.
But problem is that i have the new hot key as nsstring like @"cmd shift R"
How can i give this combination in:
RegisterEventHotKey(49,cmdKey + shiftKey , myHotKeyID, GetApplicationEventTarget(), 0, &myHotKeyRef);
as the type is UInt32. Do i have to look for each and every combination possible? Is there any other way to save hotkey or register hotkey ??


Thanks,
Ruhi.
I have registered a hot key using:
RegisterEventHotKey(49,cmdKey + shiftKey , myHotKeyID, GetApplicationEventTarget(), 0, &myHotKeyRef);
here the modifiers are written as cmdKey + shiftKey.
Now i have taken my NSTextField subclass which is trapping hotkey pressed on it. Now i want to register this new hot key.
But problem is that i have the new hot key as nsstring like @"cmd shift R"
How can i give this combination in:
RegisterEventHotKey(49,cmdKey + shiftKey , myHotKeyID, GetApplicationEventTarget(), 0, &myHotKeyRef);
as the type is UInt32. Do i have to look for each and every combination possible? Is there any other way to save hotkey or register hotkey ??
Thanks,
Ruhi.