-
Notifications
You must be signed in to change notification settings - Fork 0
HotkeyHolder
NickWare edited this page Dec 27, 2021
·
1 revision
The HotkeyHolder control HTML model:
<div class="HotkeyHolder Rounded" data-hotkeyholdername="H1"></div>
JS:
facefull.HotkeyHolders["H1"].onHotkey = function(hotkey) {
AlertShow("Alert", "Hotkey pressed!");
}
facefull.HotkeyHolders["H1"].onHotkeySet = function(hotkey) {
console.log("Setted hotkey info", hotkey);
}
// Set hotkey with key char and shift, ctrl and alt key modifiers
facefull.HotkeyHolders["H1"].setHotkey(keychar, shiftmod, ctrlmod, altmod);