From 90c4b8bc575bfadb251bea11e5d1bdb93edb9cf0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 31 May 2023 17:44:44 +0200 Subject: [PATCH] Eeschema: try to fix a not working tool (Paste tool on main horiz. toolbar) Fixes #14827 https://gitlab.com/kicad/code/kicad/-/issues/14827 --- common/tool/actions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index 58174c8ada..123b417682 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -159,11 +159,13 @@ TOOL_ACTION ACTIONS::copy( "common.Interactive.copy", _( "Copy" ), _( "Copy selected item(s) to clipboard" ), BITMAPS::copy, AF_NONE, (void*) wxID_COPY ); +// This action is also used for a tool in the main horizontal toolbar in schematic editor +// do not specify a wxID like wxID_PASTE, it prevent the tool working (at least on Windows) TOOL_ACTION ACTIONS::paste( "common.Interactive.paste", AS_GLOBAL, MD_CTRL + 'V', LEGACY_HK_NAME( "Paste" ), _( "Paste" ), _( "Paste item(s) from clipboard" ), - BITMAPS::paste, AF_NONE, (void*) wxID_PASTE ); + BITMAPS::paste, AF_NONE /*, (void*) wxID_PASTE*/ ); TOOL_ACTION ACTIONS::selectAll( "common.Interactive.selectAll", AS_GLOBAL,