Skip to main content

hotkey

Description

Optional. Specifies a hotkey combination to toggle fullscreen mode

Usage

hotkey?: string;

Parameters

The property values are the following:

  • A string representing a combination of keys, e.g. "ctrl+shift+f"
  • If omitted, no hotkey is assigned by default

Example

<script>
import { Fullscreen } from '@svar-ui/svelte-core';
</script>

<Fullscreen hotkey="ctrl+shift+f">
<div>
Fullscreen content
</div>
</Fullscreen>

Related article: Fullscreen