Skip to content

Conversation

@sandeep-singhDEV
Copy link

Fixes #2621

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

}

// enter full screen mode
keybindings.defineShortcut('toggleFullscreen', function () {
Copy link
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.

})(),
click: function (item, focusedWindow) {
if (focusedWindow) {
focusedWindow.setFullScreen(!focusedWindow.isFullScreen())
Copy link
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?

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