From 0e576394d310739c0a42ba4ec90a04493e1be930 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Thu, 4 Jun 2026 08:58:59 +1000 Subject: [PATCH] Disable right click to paste in the notes tab Right clicking pastes text into any of the input boxes but feels like it shouldn't exist in the notes tab --- src/Classes/EditControl.lua | 2 +- src/Classes/NotesTab.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Classes/EditControl.lua b/src/Classes/EditControl.lua index ca597de711..bf1c2a0c8d 100644 --- a/src/Classes/EditControl.lua +++ b/src/Classes/EditControl.lua @@ -520,7 +520,7 @@ function EditClass:OnKeyDown(key, doubleClick) self:ReplaceSel("") end end - elseif key == "v" and ctrl or key == "RIGHTBUTTON" and self.Object:IsMouseOver() then + elseif key == "v" and ctrl or key == "RIGHTBUTTON" and self.Object:IsMouseOver() and not self.disableRightClickPaste then local text = Paste() if text then if self.pasteFilter then diff --git a/src/Classes/NotesTab.lua b/src/Classes/NotesTab.lua index f78ea2eb41..a7dc1fcf8a 100644 --- a/src/Classes/NotesTab.lua +++ b/src/Classes/NotesTab.lua @@ -32,6 +32,7 @@ Below are some common color codes PoB uses: ]] self.controls.default = new("ButtonControl", {"TOPLEFT",self.controls.intelligence,"TOPLEFT"}, {120, 0, 100, 18}, "^7DEFAULT", function() self:SetColor("^7") end) self.controls.edit = new("EditControl", {"TOPLEFT",self.controls.fire,"TOPLEFT"}, {0, 48, 0, 0}, "", nil, "^%C\t\n", nil, nil, 16, true) + self.controls.edit.disableRightClickPaste = true self.controls.edit.width = function() return self.width - 16 end