A quick way to identify what to input for hotkeys.
- Create
hotkeys.js
- Input the following:
const readline = require('node:readline');
const readlinePromises = require('node:readline/promises');
const rl = readlinePromises.createInterface({
input: process.stdin,
output: process.stdout
});
readline.emitKeypressEvents(rl.input);
rl.input.setRawMode(true);
rl.input.on('keypress', async (str, key) => console.log(key));
- Run the script with
node hotkeys.js
- Look at the name field that is logged when you press keys, and use that in
config.json