[MM-54463] Enforce secure keyboard entry on macOS when a password box is focused (#2829)
* [MM-54463] Enforce secure keyboard entry on macOS when a password box is focused * PR feedback
This commit is contained in:
@@ -147,3 +147,9 @@ export function handlePingDomain(event: IpcMainInvokeEvent, url: string): Promis
|
||||
throw new Error('Could not find server ' + url);
|
||||
});
|
||||
}
|
||||
|
||||
export function handleToggleSecureInput(event: IpcMainEvent, secureInput: boolean) {
|
||||
// Enforce macOS to restrict processes from reading the keyboard input when in a password field
|
||||
log.debug('handleToggleSecureInput', secureInput);
|
||||
app.setSecureKeyboardEntryEnabled(secureInput);
|
||||
}
|
||||
|
Reference in New Issue
Block a user