Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Uwohm9 on November 27, 2019, 01:56:58 pm

Title: Bug: CTRL+C not working when hovering on file tabs
Post by: Uwohm9 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.
Title: Re: Bug: CTRL+C not working when hovering on file tabs
Post by: Pecan on November 27, 2019, 07:39:30 pm
What OS are you using. What version of CB?
Title: Re: Bug: CTRL+C not working when hovering on file tabs
Post by: BlueHazzard 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
Title: Re: Bug: CTRL+C not working when hovering on file tabs
Post by: Uwohm9 on November 29, 2019, 01:36:50 pm
What OS are you using. What version of CB?

Codeblocks 17.12 and Windows 7
Title: Re: Bug: CTRL+C not working when hovering on file tabs
Post by: Uwohm9 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).
Title: Re: Bug: CTRL+C not working when hovering on file tabs
Post by: oBFusCATed on November 30, 2019, 10:35:31 am
I think you can disable this in "Settings -> Environment -> Notebook appearance -> Enable scrolling with mouse wheel"
Title: Re: Bug: CTRL+C not working when hovering on file tabs
Post by: Uwohm9 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  :)