Author Topic: What is happening to the clipboard?  (Read 6167 times)

Offline Piotr Grochowski

  • Multiple posting newcomer
  • *
  • Posts: 12
What is happening to the clipboard?
« on: June 20, 2020, 03:31:22 pm »
Suppose I have the intent of quickly copying code from one file to another. So I select the code and as I'm moving my mouse cursor to the other tab I copy, then I switch to the other window and paste. Except it didn't copy the previous clipboard data, because for some reason it won't copy if the mouse cursor is even moved outside! The action of moving the mouse does not change the focus, so it should still copy as it's still in focus. This always gets me, and I haven't seen any other software do this.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: What is happening to the clipboard?
« Reply #1 on: June 20, 2020, 06:15:14 pm »
This is a random guess on my part; is the CB Plugin MouseSap enabled or disabled?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: What is happening to the clipboard?
« Reply #2 on: June 20, 2020, 11:34:13 pm »
Make sure that if you're using MouseDragScrolling (MouseDrag plugin) that "focus follows mouse" is unchecked.

Else when you move the mouse outside the editor, it focuses the window under the mouse. The marked area would have lost focus.

Offline windowsmaniac

  • Single posting newcomer
  • *
  • Posts: 9
Re: What is happening to the clipboard?
« Reply #3 on: September 14, 2020, 10:15:34 pm »
Hi Piotr,

have you already solved the issue? I'm having the same problem and none of the proposed solutions worked for me, unfortunately.

Greetings,
Emma

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: What is happening to the clipboard?
« Reply #4 on: September 14, 2020, 10:50:13 pm »
Please state your OS and CB version.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Piotr Grochowski

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: What is happening to the clipboard?
« Reply #5 on: March 17, 2021, 11:31:28 am »
I move the mouse to the tab bar: text loses focus
I move the mouse above it: text regains focus

This is unexpected for when I try to quickly copy from the tab to another tab and it fails when the mouse is right in the tab bar.

Name             : Code::Blocks
Version          : 20.03-r0
SDK Version      : 2.0.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxMSW port)
Version 3.1.3 (Unicode: wchar_t, debug level: 1),
compiled at Nov  1 2019 07:49:42

Runtime version of toolkit used is 6.1.

Windows 7, and the only plugin I have is the compiler MinGW

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: What is happening to the clipboard?
« Reply #6 on: March 17, 2021, 04:28:21 pm »
Quote
I move the mouse to the tab bar: text loses focus
I move the mouse above it: text regains focus
Disable Settings->Environment Settings->Notebook  appearance->Enable scrolling with mouse wheel