@launchmenu/core
Version:
An environment for visual keyboard controlled applets
11 lines • 759 B
TypeScript
import { KeyPattern } from "../../../keyHandler/KeyPattern";
import { IKeyEventListener } from "../../../keyHandler/_types/IKeyEventListener";
/**
* A handler that catches keyboard up event for modifiers if any other key was pressed since the modifier was activated.
* Used for making 'shift' toggle selection in menu only if it wasn't used to update the text selection
* @param modifiers The getter for the modifiers to catch
* @param listener The listener object to wrap in order to detect whether the modifier was used
* @returns A new key handler
*/
export declare function setupModifierCatcherHandler(modifiers: () => KeyPattern[], listener: IKeyEventListener): IKeyEventListener;
//# sourceMappingURL=setupModifierCatcherHandler.d.ts.map