disabled browser context menu

This commit is contained in:
Jan Prochazka 2021-09-16 14:57:46 +02:00
parent fce2f9a46a
commit 87fe62005d

View File

@ -24,10 +24,13 @@
import dragDropFileTarget from './utility/dragDropFileTarget';
$: currentThemeType = $currentThemeDefinition?.themeType == 'dark' ? 'theme-type-dark' : 'theme-type-light';
</script>
<div class={`${$currentTheme} ${currentThemeType} root`} use:dragDropFileTarget>
<div
class={`${$currentTheme} ${currentThemeType} root`}
use:dragDropFileTarget
on:contextmenu={e => e.preventDefault()}
>
<div class="iconbar">
<WidgetIconPanel />
</div>
@ -68,7 +71,7 @@
<DragAndDropFileTarget />
{/if}
<div class="snackbar-container">
{#each $openedSnackbars as snackbar(snackbar.id)}
{#each $openedSnackbars as snackbar (snackbar.id)}
<Snackbar {...snackbar} />
{/each}
</div>
@ -153,5 +156,4 @@
right: 0;
bottom: var(--dim-statusbar-height);
}
</style>