WinKeyLock now supports configurable blacklist and whitelist functionality for keyboard shortcuts.
The configuration file is automatically created at:
- Windows:
%APPDATA%\winkeylock\config.json
The configuration file uses JSON format with two main sections:
Key combinations that should be blocked when the application is busy or in fullscreen mode.
Key combinations that should be explicitly allowed, even if they match a blacklist entry.
{
"blacklist": ["lwin"],
"whitelist": []
}Key combinations are specified as strings using the format: modifier+...+key
ctrlorcontrol: Control keyalt: Alt keyshift: Shift keylwin,rwin, orsuper: Windows key
Letters: a through z
Numbers: 0 through 9
Function Keys: f1 through f24
Special Keys:
space,enter,return,tab,escape,escbackspace,delete,del,insert,inshome,end,pageup,pagedownup,down,left,rightprintscreen,prtsc,pausecapslock,numlock,scrolllock
Punctuation:
semicolon,equals,comma,minus,period,slashgrave,leftbracket,backslash,rightbracket,quote
Examples:
lwin: Windows key alonelwin+shift+s: Windows + Shift + S (screenshot)ctrl+alt+delete: Ctrl + Alt + Deletealt+f4: Alt + F4
By default, the application:
Blocks:
- Windows key by itself (left and right)
- Right-click the system tray icon
- Select "Open configuration"
- Edit the JSON file in your editor using the string format (e.g., "win+shift+s")
- Save the file
- Restart the application for changes to take effect
Whitelist entries have higher priority than blacklist entries. If a key combination matches both a blacklist and whitelist entry, it will be allowed.
- Configuration changes require restarting the application
- The application only blocks keys when Windows indicates the system is busy or in fullscreen mode (like in gaming)
- Invalid configuration files will fall back to default settings