hl.dsp.pass¶
- hl.dsp.pass(spec: table)¶
Create a dispatcher.
Signature¶
hl.dsp.pass(spec: table): HL.Dispatcher
Parameters¶
- spectable
Must contain
window.- window
HL.WindowSelector Window to pass the current key event to.
Returns¶
- dispatcher
HL.Dispatcher Dispatcher object returned by this function.
Examples¶
hl.bind("SUPER + P", hl.dsp.pass({ window = "class:firefox" }))
See also¶
HL.DispatcherDispatcher object returned by this function.
hl.bind()Bind a dispatcher to a key.
hl.dispatch()Execute a dispatcher immediately.