refactor(cli): keyboard handling and AskUserDialog (#17414)

This commit is contained in:
Jacob Richman
2026-01-27 14:26:00 -08:00
committed by GitHub
parent 3103697ea7
commit b51323b40c
46 changed files with 1220 additions and 385 deletions
@@ -66,6 +66,7 @@ export function PermissionsModifyTrustDialog({
(key) => {
if (key.name === 'escape') {
onExit();
return true;
}
if (needsRestart && key.name === 'r') {
const success = commitTrustLevelChange();
@@ -75,7 +76,9 @@ export function PermissionsModifyTrustDialog({
} else {
onExit();
}
return true;
}
return false;
},
{ isActive: true },
);