shortcut bypass
This commit is contained in:
parent
61b6e52403
commit
65f84c4d6c
|
@ -2,6 +2,7 @@
|
|||
<div class="sidebar-row">
|
||||
<button
|
||||
type="button"
|
||||
data-editor-events="true"
|
||||
:draggable="true"
|
||||
:class="{
|
||||
selected: !!selected,
|
||||
|
|
|
@ -26,7 +26,11 @@ export class ShotcutsComponent extends EngineComponent {
|
|||
|
||||
private bindEvents() {
|
||||
const keyPressEvent = (event: KeyboardEvent) => {
|
||||
if (!event.target || (event.target as HTMLElement).tagName !== 'BODY')
|
||||
if (
|
||||
!event.target ||
|
||||
((event.target as HTMLElement).tagName !== 'BODY' &&
|
||||
!(event.target as HTMLElement).hasAttribute('data-editor-events'))
|
||||
)
|
||||
return;
|
||||
|
||||
if (event.key === 'Delete') {
|
||||
|
|
Loading…
Reference in New Issue