Problem defining a new accerator
-
- CodeLite Enthusiast
- Posts: 30
- Joined: Wed Oct 03, 2012 6:12 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Problem defining a new accerator
I am using CodeLite 5.1 on Ubuntu 12.05.
I have tried 2 different ways to add an accelerator for Clean Project and both seem to be invoking some other action.
Method 1 - found the config file, checked that Shift-F7 was not in use, added it as the last parameter to Clean Build (as a analog to F7 for Build). Restarted the IDE, Settings > Keyboard Shortcuts... Defaults. No shortcut showed up in the menu for Clean Build.
Method 2) in the Keyboard Shortcuts dialog > Edit > selected Clean Build > added Shift-F7 > OK > OK.
Clean Build works from the menu. Shift-F7 just attempts to Build the project again.
Am I doing something wrong?
I have tried 2 different ways to add an accelerator for Clean Project and both seem to be invoking some other action.
Method 1 - found the config file, checked that Shift-F7 was not in use, added it as the last parameter to Clean Build (as a analog to F7 for Build). Restarted the IDE, Settings > Keyboard Shortcuts... Defaults. No shortcut showed up in the menu for Clean Build.
Method 2) in the Keyboard Shortcuts dialog > Edit > selected Clean Build > added Shift-F7 > OK > OK.
Clean Build works from the menu. Shift-F7 just attempts to Build the project again.
Am I doing something wrong?
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Problem defining a new accerator
Hi,
FWIW, method 2 with Sh-F7 works fine for me (debian wheezy, kde).
Which DE are you using? If it's something unusual, try a different one.
Also, check your DE's global shortcuts in case it pre-empts Sh-F7.
Regards,
David
FWIW, method 2 with Sh-F7 works fine for me (debian wheezy, kde).
Which DE are you using? If it's something unusual, try a different one.
Also, check your DE's global shortcuts in case it pre-empts Sh-F7.
Regards,
David
-
- CodeLite Enthusiast
- Posts: 30
- Joined: Wed Oct 03, 2012 6:12 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem defining a new accerator
Thanks. I was using Xfce and per your suggestion I just tried OpenBox but the results are the same.
I don't think it is the DE because SH-F7 causes a build, as if it were F7.
For what it's worth this is all running in a virtual machine under VMware Player (on an XP host), although I don't think that is a factor.
I don't think it is the DE because SH-F7 causes a build, as if it were F7.
For what it's worth this is all running in a virtual machine under VMware Player (on an XP host), although I don't think that is a factor.
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Problem defining a new accerator
I tested on a xubuntu 12.04 virtualbox guest, and had the same problem. I then tried with xubuntu 13.04 and it worked as expected.I was using Xfce and per your suggestion I just tried OpenBox but the results are the same.
If you search the forum or the bug tracker for 'xfce' you'll find various reports of odd behaviour, not reproducible on gnome/kde/lxde. At least this one has apparently now been fixed. So one answer for you is to upgrade either your ubuntu or its xfce. If you don't want to do either, I suggest you try with lxde.
-
- CodeLite Enthusiast
- Posts: 30
- Joined: Wed Oct 03, 2012 6:12 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem defining a new accerator
OK - I just tried LXDE and the problem persists.
I'll put this aside for now and upgrade the distro later - or change to a different one.
Thanks.
I'll put this aside for now and upgrade the distro later - or change to a different one.
Thanks.
-
- CodeLite Expert
- Posts: 231
- Joined: Sat Nov 24, 2012 8:04 pm
- Genuine User: Yes
- IDE Question: c++
- Location: Los Angeles
- Contact:
Re: Problem defining a new accerator
for some kb shortcuts I had to disable Gtk's built-in ones or they'll intercept CL's:
file name, location or contents may vary, so caveat emptor.
cheers,
-- p
Code: Select all
echo "gtk-enable-mnemonics = 0" >> ~/.gtkrc-2.0
cheers,
-- p
main: Debian Jessie x64 + custom wxTrunk
-
- CodeLite Enthusiast
- Posts: 30
- Joined: Wed Oct 03, 2012 6:12 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem defining a new accerator
Just a follow-up with another observation. It seems that generally the "Shift" part of my self-defined accelerator is being lost but ALSO the case for the pre-defined accelerators.
My definition of Shift-F7 was interpreted as F7 (build). No problem, I associated F6 with "Clean" and it works fine.
But now I noticed that Shift-F5 does not stop the debugger. Rather it "Continues" the debugger as if it was F5.
Armed with this I tried "stepping out" of a routine with Shift-F11 but what happened was just another regular "step". For the heck of it I tried Ctrl-Shift-F5 to "restart" the debugger and it worked.
The question is -- is there an environmental issue that could just be dropping/escaping the Shift key?
My definition of Shift-F7 was interpreted as F7 (build). No problem, I associated F6 with "Clean" and it works fine.
But now I noticed that Shift-F5 does not stop the debugger. Rather it "Continues" the debugger as if it was F5.
Armed with this I tried "stepping out" of a routine with Shift-F11 but what happened was just another regular "step". For the heck of it I tried Ctrl-Shift-F5 to "restart" the debugger and it worked.
The question is -- is there an environmental issue that could just be dropping/escaping the Shift key?
-
- CodeLite Expert
- Posts: 231
- Joined: Sat Nov 24, 2012 8:04 pm
- Genuine User: Yes
- IDE Question: c++
- Location: Los Angeles
- Contact:
Re: Problem defining a new accerator
shift-F11 works fine here. I use CL on Debian x32 and x64 with Xfce4 so must be a problem specific to your setup.
I'd check the WE's desktop shortcuts for any overrides, otherwise build & run ./wxWidgets/samples/keyboard to make sure it receives all your key combos.
cheers,
-- p
I'd check the WE's desktop shortcuts for any overrides, otherwise build & run ./wxWidgets/samples/keyboard to make sure it receives all your key combos.
cheers,
-- p
main: Debian Jessie x64 + custom wxTrunk
-
- CodeLite Enthusiast
- Posts: 30
- Joined: Wed Oct 03, 2012 6:12 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Problem defining a new accerator
Hmmm... sounds like a good plan. However, I have only used CodeLite for console apps so far.
I just installed libwxgtk2.8-dev and libwxgtk2.8-dbg (latest stable?) and was able to create a new project (Executable - wxWidgets Enabled) and all that. But, I can't find the keyboard sample online or on the OS I just installed to. Is there something else that needs to be installed?
I just installed libwxgtk2.8-dev and libwxgtk2.8-dbg (latest stable?) and was able to create a new project (Executable - wxWidgets Enabled) and all that. But, I can't find the keyboard sample online or on the OS I just installed to. Is there something else that needs to be installed?
-
- CodeLite Expert
- Posts: 231
- Joined: Sat Nov 24, 2012 8:04 pm
- Genuine User: Yes
- IDE Question: c++
- Location: Los Angeles
- Contact:
Re: Problem defining a new accerator
download the wxWidgets source code and look in the samples subfolder. Don't know how to build those from binary wx libraries; I build mine from source (and no I wont walk you through that )
cheers,
-- p
cheers,
-- p
main: Debian Jessie x64 + custom wxTrunk