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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user