From ccb39748958c4278d9747e22aa2484ad40fb68a3 Mon Sep 17 00:00:00 2001
From: Přemysl Eric Janouch <p@janouch.name>
Date: Mon, 5 Jun 2023 19:57:47 +0200
Subject: Avoid ringing the bell on focus events

---
 hex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hex.c b/hex.c
index 86bc643..3cb87e2 100644
--- a/hex.c
+++ b/hex.c
@@ -1642,7 +1642,7 @@ app_process_termo_event (termo_key_t *event)
 		return app_process_action (binding->action);
 
 	// TODO: once we become an editor, use 0-9 a-f to overwrite nibbles
-	return false;
+	return event->type == TERMO_TYPE_FOCUS;
 }
 
 // --- Signals -----------------------------------------------------------------
-- 
cgit v1.2.3-70-g09d2