Skip to content

fix: resolve full screen error in key bindings and main integration#2664

Closed
sandeep-singhDEV wants to merge 1 commit intominbrowser:masterfrom
sandeep-singhDEV:full-screen-error-fix
Closed

fix: resolve full screen error in key bindings and main integration#2664
sandeep-singhDEV wants to merge 1 commit intominbrowser:masterfrom
sandeep-singhDEV:full-screen-error-fix

Conversation

@sandeep-singhDEV
Copy link
Copy Markdown

Fixes #2621

Additional key binding to full screen window.
Integrating new key binding.

Comment thread js/defaultKeybindings.js
}

// enter full screen mode
keybindings.defineShortcut('toggleFullscreen', function () {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do? I wouldn't expect this to work, since there's no toggleFullscreen defined in defaultKeyMap.

Comment thread main/menu.js
})(),
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.setFullScreen(!focusedWindow.isFullScreen())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this produce a different result than role: 'togglefullscreen'? If it does, that's probably a bug in Electron - would you be willing to make a reduced testcase of this and open an issue there?

@PalmerAL PalmerAL closed this Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

full screen doesn't full screen the window

2 participants