Author Topic: Bug: CTRL+C not working when hovering on file tabs  (Read 5923 times)

Offline Uwohm9

  • Single posting newcomer
  • *
  • Posts: 5
Bug: CTRL+C not working when hovering on file tabs
« on: November 27, 2019, 01:56:58 pm »
Hello,

I have worked a long time with C::B now, and would like to report a bug that is annoying me since the beginning.

Sometimes you want to copy some code from a file to another file, but my habit is:
1) Highlight/select text with mouse
2) Then go with the mouse hovering the file I want to paste my code to
3) And then press CTRL+C

Problem is that the text-cursor stops registering when hovering the mouse on a file like main.cpp.
So if you press CTRL+C when hovering a file with the mouse-cursor, the highlighted content is not paste to the clipboard.

Is this a bug? Or can this be turned off somewhere? Because I can't change my habit, since in other editors I have no problem with this.

Thanks for reading,

Cheers

EDIT:
I think someone should remove the SetFocus() line, when the OnHoveringMouseEvent() function is being activated on the Notebook widget, containing the tab files .cpp/.h/.rc etc.
« Last Edit: November 27, 2019, 02:08:24 pm by Uwohm9 »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2769
Re: Bug: CTRL+C not working when hovering on file tabs
« Reply #1 on: November 27, 2019, 07:39:30 pm »
What OS are you using. What version of CB?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Bug: CTRL+C not working when hovering on file tabs
« Reply #2 on: November 28, 2019, 07:04:26 pm »
Quote
I think someone should remove the SetFocus() line, when the OnHoveringMouseEvent() function is being activated on the Notebook widget

i think this is because you can use the scroll wheel to scroll trough the tabs

Offline Uwohm9

  • Single posting newcomer
  • *
  • Posts: 5
Re: Bug: CTRL+C not working when hovering on file tabs
« Reply #3 on: November 29, 2019, 01:36:50 pm »
What OS are you using. What version of CB?

Codeblocks 17.12 and Windows 7

Offline Uwohm9

  • Single posting newcomer
  • *
  • Posts: 5
Re: Bug: CTRL+C not working when hovering on file tabs
« Reply #4 on: November 29, 2019, 01:40:11 pm »
Quote
I think someone should remove the SetFocus() line, when the OnHoveringMouseEvent() function is being activated on the Notebook widget

i think this is because you can use the scroll wheel to scroll trough the tabs

Yeah but that should only work when you click a tab, not instantly gain focus when hovering it with your mouse.
But that is my opinion/programming-style (discussable).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Bug: CTRL+C not working when hovering on file tabs
« Reply #5 on: November 30, 2019, 10:35:31 am »
I think you can disable this in "Settings -> Environment -> Notebook appearance -> Enable scrolling with mouse wheel"
(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 Uwohm9

  • Single posting newcomer
  • *
  • Posts: 5
Re: Bug: CTRL+C not working when hovering on file tabs
« Reply #6 on: December 02, 2019, 10:53:26 am »
I think you can disable this in "Settings -> Environment -> Notebook appearance -> Enable scrolling with mouse wheel"

This worked, thanks  :)