Remove rudimentary, conflicting escape listener in keyboard service

This commit is contained in:
Igor Zinken
2026-03-30 22:49:54 +02:00
parent b98bb1ab70
commit 111046f05f

View File

@@ -195,16 +195,6 @@ function handleKeyDown( event: KeyboardEvent ): void {
}
break;
case 27: // escape
// close dialog (if existing), else close overlay (if existing)
if ( state.dialog ) {
commit( "closeDialog" );
} else if ( state.modal ) {
commit( "closeModal" );
}
break;
case 32: // spacebar
commit( "setPanMode", true );
break;