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

Function handleAccelerator

keybindings.js:539–546  ·  view source on GitHub ↗
(display, actionId, _deviceId, _timestamp)

Source from the content-addressed store, hash-verified

537}
538
539export function handleAccelerator(display, actionId, _deviceId, _timestamp) {
540 const action = actionIdMap[actionId];
541 if (action) {
542 console.debug("#keybindings", "Schemaless keybinding activated",
543 actionId, action.name);
544 action.keyHandler(display, display.focus_window);
545 }
546}
547
548export function disableAction(action) {
549 if (action.id === Meta.KeyBindingAction.NONE) {

Callers 1

enableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected