Skip to content

Commit

Permalink
Fire manual keyup event when key is not Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
sangboak.lee committed May 22, 2023
1 parent fac6ec5 commit 6eef2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabby-core/src/services/hotkeys.service.ts
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 6eef2c9

Please sign in to comment.