fix: removed apprt action for toggle_readonly
parent
12bb2f3f47
commit
547bcd261d
|
|
@ -797,7 +797,6 @@ typedef enum {
|
|||
GHOSTTY_ACTION_RESIZE_SPLIT,
|
||||
GHOSTTY_ACTION_EQUALIZE_SPLITS,
|
||||
GHOSTTY_ACTION_TOGGLE_SPLIT_ZOOM,
|
||||
GHOSTTY_ACTION_TOGGLE_READONLY,
|
||||
GHOSTTY_ACTION_PRESENT_TERMINAL,
|
||||
GHOSTTY_ACTION_SIZE_LIMIT,
|
||||
GHOSTTY_ACTION_RESET_WINDOW_SIZE,
|
||||
|
|
|
|||
|
|
@ -5405,11 +5405,7 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool
|
|||
|
||||
.toggle_readonly => {
|
||||
self.readonly = !self.readonly;
|
||||
return try self.rt_app.performAction(
|
||||
.{ .surface = self },
|
||||
.toggle_readonly,
|
||||
{},
|
||||
);
|
||||
return true;
|
||||
},
|
||||
|
||||
.reset_window_size => return try self.rt_app.performAction(
|
||||
|
|
|
|||
|
|
@ -139,11 +139,6 @@ pub const Action = union(Key) {
|
|||
/// to take up the entire window.
|
||||
toggle_split_zoom,
|
||||
|
||||
/// Toggle whether the surface is in read-only mode. When read-only,
|
||||
/// no input is sent to the PTY but terminal-level operations like
|
||||
/// selections, scrolling, and copy/paste keybinds still work.
|
||||
toggle_readonly,
|
||||
|
||||
/// Present the target terminal whether its a tab, split, or window.
|
||||
present_terminal,
|
||||
|
||||
|
|
@ -340,7 +335,6 @@ pub const Action = union(Key) {
|
|||
resize_split,
|
||||
equalize_splits,
|
||||
toggle_split_zoom,
|
||||
toggle_readonly,
|
||||
present_terminal,
|
||||
size_limit,
|
||||
reset_window_size,
|
||||
|
|
|
|||
|
|
@ -724,10 +724,6 @@ pub const Application = extern struct {
|
|||
.toggle_window_decorations => return Action.toggleWindowDecorations(target),
|
||||
.toggle_command_palette => return Action.toggleCommandPalette(target),
|
||||
.toggle_split_zoom => return Action.toggleSplitZoom(target),
|
||||
.toggle_readonly => {
|
||||
// The readonly state is managed in Surface.zig.
|
||||
return true;
|
||||
},
|
||||
.show_on_screen_keyboard => return Action.showOnScreenKeyboard(target),
|
||||
.command_finished => return Action.commandFinished(target, value),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue