Skip to content

Commit

Permalink
Merge pull request #8471 from echo304/fix-additional-line-break-when-…
Browse files Browse the repository at this point in the history
…pane-maximize

Fire manual keyup event when key is not Enter
  • Loading branch information
Eugeny committed May 22, 2023
2 parents fac6ec5 + 6eef2c9 commit 1d2c7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabby-core/src/services/hotkeys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class HotkeysService {
this._key.next(getKeyName(eventData))
})

if (process.platform === 'darwin' && eventData.metaKey && eventName === 'keydown' && !['Ctrl', 'Shift', altKeyName, metaKeyName].includes(keyName)) {
if (process.platform === 'darwin' && eventData.metaKey && eventName === 'keydown' && !['Ctrl', 'Shift', altKeyName, metaKeyName, 'Enter'].includes(keyName)) {
// macOS will swallow non-modified keyups if Cmd is held down
this.pushKeyEvent('keyup', nativeEvent)
}
Expand Down

0 comments on commit 1d2c7ab

Please sign in to comment.