1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-06 00:03:29 +00:00

[macOS] Don't enable secure input when app is not in focus (#419)

* Don't engage macOS secure input if not focused

* Refactor to use focusInputOnPageLoad

* Refactor to remove focusInputOnPageLoad
This commit is contained in:
Thomas Rittson
2021-07-02 10:06:54 +10:00
committed by GitHub
parent 9ee31ad2fb
commit 6f6b5a5503
2 changed files with 12 additions and 2 deletions

View File

@@ -174,6 +174,12 @@ export class WindowMain {
this.win.on('move', () => {
this.windowStateChangeHandler(Keys.mainWindowSize, this.win);
});
this.win.on('focus', () => {
this.win.webContents.send('messagingService', {
command: 'windowIsFocused',
windowIsFocused: true,
});
});
if (this.createWindowCallback) {
this.createWindowCallback(this.win);