function handleChanged(changeInfo) {
console.log(`Shortcut for: ${changeInfo.name} changed`);
console.log(`From: ${changeInfo.oldShortcut}`);
console.log(`To: ${changeInfo.newShortcut}`);
}
browser.commands.onChanged.addListener(handleChanged);onChanged / notebook
onChanged
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.