MCPcopy
hub / github.com/paperwm/PaperWM / asKeyHandler

Function asKeyHandler

keybindings.js:367–373  ·  view source on GitHub ↗
(actionHandler)

Source from the content-addressed store, hash-verified

365}
366
367export function asKeyHandler(actionHandler) {
368 if (Utils.version[0] >= 48) {
369 return (display, mw, evt, binding) => actionHandler(mw, Tiling.spaces.selectedSpace, { display, binding });
370 } else {
371 return (display, mw, binding) => actionHandler(mw, Tiling.spaces.selectedSpace, { display, binding });
372 }
373}
374
375export function impliedOptions(options) {
376 options = options = Object.assign({ mutterFlags: Meta.KeyBindingFlags.NONE }, options);

Callers 2

registerActionFunction · 0.85
enableActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected