mirror of
https://github.com/igorski/bitmappery.git
synced 2026-06-16 19:25:38 +02:00
Remove rudimentary, conflicting escape listener in keyboard service
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user