From f30eb3c46f74cd09ec959ba9e8d9b310609f655d Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 14 Jun 2025 17:58:26 +0300 Subject: [PATCH] Rename 'input' and 'mouseInput' functions to 'handleKeyInput' and 'handleMouseInput' --- src/window.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/window.go b/src/window.go index 244e966..93a8e0f 100644 --- a/src/window.go +++ b/src/window.go @@ -138,13 +138,13 @@ func (window *Window) ProcessEvents() { window.screen.Sync() window.SyncBufferOffset() case *tcell.EventMouse: - window.mouseInput(ev) + window.handleMouseInput(ev) case *tcell.EventKey: - window.input(ev) + window.handleKeyInput(ev) } } -func (window *Window) input(ev *tcell.EventKey) { +func (window *Window) handleKeyInput(ev *tcell.EventKey) { if ev.Key() == tcell.KeyRight { // Navigation Keys if window.CursorMode == CursorModeBuffer { // Get original cursor position @@ -517,7 +517,7 @@ func (window *Window) input(ev *tcell.EventKey) { } } -func (window *Window) mouseInput(ev *tcell.EventMouse) { +func (window *Window) handleMouseInput(ev *tcell.EventMouse) { mouseX, mouseY := ev.Position() // Left click was pressed