core: add toggle_secure_input keybinding

This commit is contained in:
Mitchell Hashimoto
2024-09-19 10:20:20 -07:00
parent 0c38f40f0a
commit c0e0eff468
6 changed files with 39 additions and 2 deletions

View File

@@ -297,6 +297,16 @@ pub const Action = union(enum) {
/// Toggle window decorations on and off. This only works on Linux.
toggle_window_decorations: void,
/// Toggle secure input mode on or off. This is used to prevent apps
/// that monitor input from seeing what you type. This is useful for
/// entering passwords or other sensitive information.
///
/// This applies to the entire application, not just the focused
/// terminal. You must toggle it off to disable it, or quit Ghostty.
///
/// This only works on macOS, since this is a system API on macOS.
toggle_secure_input: void,
/// Quit ghostty.
quit: void,