Skip to content

Commit

Permalink
Minor changes to Fullscreen element
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyxion committed Jan 1, 2025
1 parent 9ed273e commit d815b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nicegui/elements/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {

exit() {
// Exit fullscreen via Quasar's Fullscreen Plugin
return Quasar.AppFullscreen.exit()
Quasar.AppFullscreen.exit()
},

toggle(blockEscapeKey) {
Expand Down
2 changes: 1 addition & 1 deletion nicegui/elements/fullscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, *, require_escape_hold: bool = False, on_state_change: Callab
super().__init__()
self._is_fullscreen = False
self._require_escape_hold = require_escape_hold
self.on('fullscreen_change', lambda e: self._handle_fullscreen_change(e))
self.on('fullscreen_change', self._handle_fullscreen_change)
self._state_change_handlers = [on_state_change] if on_state_change else []

def _handle_fullscreen_change(self, event):
Expand Down

0 comments on commit d815b95

Please sign in to comment.