User forums > Using Code::Blocks
Annoying recent behavior in the editor tabs...
rickg22:
Hi again guys. Here's something I need to report and perhaps get help about.
We know that since 8.02, C::B has this "open files" dialog pop up whenever you press ctrl-tab. I had always been a bit of annoyed by it, but I guess I had got used to it. This was fine until getting a recent nightly, which has another annoyance.
If by any chance the mouse happens to be over the editor tabs, whenever I press ctrl-left, instead of moving the cursor a word forward or backward, it moves the whole tabs. It's totally irritating, especially because over the years I've grown a habit for moving the mouse away from the editing area, just over the tabs most of the time, but until now I never noticed where the mouse was (which was actually the point).
Worst of all, whenever I the mouse happens to hover on one of the tabs, a little pop up showing the full filename shows. Which would be perfectly fine, except for a little detail: I can't type a thing. Grrrrr!!!!
So, here are a couple of requests that would make me very happy:
a) Provide the users with the (optional, of course) means to skip that popup list (I see now how ctrl-left and ctrl-right work on the tabs, so I guess ctrl-tab and ctrl-shift-tab could already be mapped on it... I hope).
b) Make ctrl-left and ctrl-right do what they're supposed to do.
c) Don't eat keystrokes when a tab hint shows up.
Thank you very much, and keep up the good work!
oBFusCATed:
Unfortunately the eat key thing is something broken in the wxWidgets. It happens also for the debugger tooltips.
If you know a way to fix this problem, I'll be happy to implement the fix :)
Jenna:
--- Quote from: rickg22 on May 04, 2011, 10:43:36 pm ---a) Provide the users with the (optional, of course) means to skip that popup list (I see now how ctrl-left and ctrl-right work on the tabs, so I guess ctrl-tab and ctrl-shift-tab could already be mapped on it... I hope).
b) Make ctrl-left and ctrl-right do what they're supposed to do.
c) Don't eat keystrokes when a tab hint shows up.
--- End quote ---
a) uncheck "Settings -> Environment... -> Notebooks appearance -> Tooltips on tabs -> Show tooltips",
b) works correctly on linux, but on windows the focus is switched to the tabcontrol if the mouse is over it, because it can not catch mouse-events otherwise,
with other words hard to change, but I will look into it,
c) I will see if it's possible
rickg22:
--- Quote from: jens on May 04, 2011, 11:04:22 pm ---a) uncheck "Settings -> Environment... -> Notebooks appearance -> Tooltips on tabs -> Show tooltips",
Um, that's not what I meant... I meant the little window that says:
--- Code: --------------------------------
Open Files
file1.cpp
file2.cpp
etc.
-----------------------------
--- End code ---
whenever I press ctrl-tab or ctrl-shift-tab.
b) Thanks!
c) Thanks again!
--- End quote ---
I think that perhaps both b) and c) would be possible by redirecting all key events (that are not ctrl-tab or ctrl-shift-tab) to the editor widget.
EDIT: I just realized that the key-eating happens no matter if a hint appears or not... so perhaps there could be a way to just disable the autofocusing tabs on mouseover as a workaround? I see there's a "move tabs with mousewheel" option in the Environment Settings, but it doesn't affect on whether the tabs are auto-focused or not.
Jenna:
Try to change the shortcut-key for "View -> Switch tabs" with the keybinder plugin.
For the key-eating (or better the forced mouse focus), it's done always on windows, not only if scrolling with the mouse-wheel is enabled, but this can most likely be changed easily (it's on my todo-list).
Navigation
[0] Message Index
[#] Next page
Go to full version