Merge branch 'macos-secure-keyboard-entry' of https://github.com/multi/kitty
This is the usual Apple security theatre. Prevent key loggers from reading key events from the OS, but those same key events are written to the unsecured tty device from where the keylogger could read them anyway. But, since I dont want to have to explain why this is simply security theatre to every rando on the internet, merging anyway. It only costs one line in the application menu and maybe it will make some people that click on it *feel* more secure.
This commit is contained in:
@@ -397,6 +397,12 @@ cocoa_create_global_menu(void) {
|
||||
|
||||
[appMenu addItem:[NSMenuItem separatorItem]];
|
||||
|
||||
[[appMenu addItemWithTitle:@"Secure Keyboard Entry"
|
||||
action:@selector(toggleSecureInput:)
|
||||
keyEquivalent:@"s"]
|
||||
setKeyEquivalentModifierMask:NSEventModifierFlagOption | NSEventModifierFlagCommand];
|
||||
[appMenu addItem:[NSMenuItem separatorItem]];
|
||||
|
||||
[appMenu addItemWithTitle:[NSString stringWithFormat:@"Quit %@", app_name]
|
||||
action:@selector(terminate:)
|
||||
keyEquivalent:@"q"];
|
||||
|
||||
Reference in New Issue
Block a user