core: remove readonly check

pull/9130/head
Mitchell Hashimoto 2025-12-12 14:15:43 -08:00
parent 19e0864688
commit 182cb35bae
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 0 additions and 6 deletions

View File

@ -2592,12 +2592,6 @@ pub fn keyCallback(
if (insp_ev) |*ev| ev else null, if (insp_ev) |*ev| ev else null,
)) |v| return v; )) |v| return v;
// If the surface is in read-only mode, we consume the key event here
// without sending it to the PTY.
if (self.readonly) {
return .consumed;
}
// If we allow KAM and KAM is enabled then we do nothing. // If we allow KAM and KAM is enabled then we do nothing.
if (self.config.vt_kam_allowed) { if (self.config.vt_kam_allowed) {
self.renderer_state.mutex.lock(); self.renderer_state.mutex.lock();