Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » key bindings do nothing
key bindings do nothing [message #335994] Wed, 13 May 2009 03:55 Go to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
I tried newcomer, so I am hoping someone here can direct me.

Hi. Using Window > Preferences > General > Keys I added a Binding of
Ctrl+F2 for the command "Terminate and Relaunch" When= "In Dialogs and
Windows" Category: "Run/Debug", User U.

But Ctrl+F2 never does anything. Any hints?

Also: is there any way to tell eclipse to stop using context-dependent
key bindings? Is it possible to configure eclipse to us only global
commands? The default system is very inefficient, many operations take
three keys: get out of this window, go to that view, run this command.

Thanks for any suggestions!
jjb
Re: key bindings do nothing [message #336005 is a reply to message #335994] Wed, 13 May 2009 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

John J. Barton wrote:
> Also: is there any way to tell eclipse to stop using context-dependent
> key bindings? Is it possible to configure eclipse to us only global
> commands? The default system is very inefficient, many operations take
> three keys: get out of this window, go to that view, run this command.

I'm pretty sure there is not a way to do that, but have you used the
Quick Access feature (Ctrl+3)? I think you'll find it very handy. Read
all about it: http://www.google.com/search?q=eclipse+"quick+access"

Hope this helps,
Eric
Re: key bindings do nothing [message #336011 is a reply to message #336005] Wed, 13 May 2009 15:49 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Eric Rizzo wrote:
> John J. Barton wrote:
>> Also: is there any way to tell eclipse to stop using context-dependent
>> key bindings? Is it possible to configure eclipse to us only global
>> commands? The default system is very inefficient, many operations take
>> three keys: get out of this window, go to that view, run this command.
>
> I'm pretty sure there is not a way to do that, but have you used the
> Quick Access feature (Ctrl+3)? I think you'll find it very handy. Read
> all about it: http://www.google.com/search?q=eclipse+"quick+access"

Thanks Eric. But I don't think this helps at all. To issue "terminate
and relaunch" which I do many, many times a day I currently:

Ctrl-F7 popup view selector
1-3 arrow keys nav to Debug view
Enter select debug view
Down arrow focus app
Shift-F10 popup context
8 arrow up select Terminate and Relaunch
----------
13-15 keystrokes

With Ctrl-3:

Ctrl-3 popup selector
d-e-b filter list to show debug stuff
1-3 arrow keys nav to Debug view
Enter select debug view
Down arrow focus app
Shift-F10 popup context
8 arrow up select Terminate and Relaunch
----------
16-19 keystrokes

Surely there is a better way?

jjb
Re: key bindings do nothing [message #336016 is a reply to message #336011] Wed, 13 May 2009 17:14 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
John,
I guess Ctrl+F2 is mapped to Terminate (or some other command) When
there is a conflict, neither of the commands will be executed for the
keybinding.

- Prakash

---
http://blog.eclipse-tips.com
Re: key bindings do nothing [message #336018 is a reply to message #336016] Wed, 13 May 2009 20:51 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Prakash G.R. wrote:
> John,
> I guess Ctrl+F2 is mapped to Terminate (or some other command) When
> there is a conflict, neither of the commands will be executed for the
> keybinding.
>

But no error message? Is there any way to know what keys conflict or
what keys are free? Trial and error with no feedback seems pretty bleak ;-)

Thanks,
John
Re: key bindings do nothing [message #336021 is a reply to message #336016] Thu, 14 May 2009 04:32 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
I sorted the Keys panel by Binding. Only one entry was Ctrl+F2, the one
I entered.

I pressed Ctrl+F2 when the Debug panel was selected and when the context
menu popup was up, nothing.

I used Ctrl+Shift+L to bring up the list of keys. My Ctrl+F2 is listed
as Terminate and Relaunch.

So is key-binding just broken? I'm running 3.4.1.

jjb
Re: key bindings do nothing [message #336023 is a reply to message #336021] Thu, 14 May 2009 06:15 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
John J. Barton wrote:
>
> I sorted the Keys panel by Binding. Only one entry was Ctrl+F2, the one
> I entered.
>
> I pressed Ctrl+F2 when the Debug panel was selected and when the context
> menu popup was up, nothing.
>
> I used Ctrl+Shift+L to bring up the list of keys. My Ctrl+F2 is listed
> as Terminate and Relaunch.
>
> So is key-binding just broken? I'm running 3.4.1.
>
> jjb

If there is a conflict, you would see it when you assign the key in the
Keys Preference page itself.

Assuming that there is no conflict, it should ideally work. Probably its
a bug? Can you raise a bug report along with the csv export of your
keys? (You can do it from the Keys preference page)

- Prakash

---
http://blog.eclipse-tips.com
Re: key bindings do nothing [message #336058 is a reply to message #336011] Fri, 15 May 2009 22:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

John J. Barton wrote:
> Eric Rizzo wrote:
>> John J. Barton wrote:
>>> Also: is there any way to tell eclipse to stop using
>>> context-dependent key bindings? Is it possible to configure eclipse
>>> to us only global commands? The default system is very inefficient,
>>> many operations take three keys: get out of this window, go to that
>>> view, run this command.
>>
>> I'm pretty sure there is not a way to do that, but have you used the
>> Quick Access feature (Ctrl+3)? I think you'll find it very handy. Read
>> all about it: http://www.google.com/search?q=eclipse+"quick+access"
>
> Thanks Eric. But I don't think this helps at all. To issue "terminate
> and relaunch" which I do many, many times a day I currently:
>
> Ctrl-F7 popup view selector
> 1-3 arrow keys nav to Debug view
> Enter select debug view
> Down arrow focus app
> Shift-F10 popup context
> 8 arrow up select Terminate and Relaunch
> ----------
> 13-15 keystrokes
>
> With Ctrl-3:
>
> Ctrl-3 popup selector
> d-e-b filter list to show debug stuff
> 1-3 arrow keys nav to Debug view
> Enter select debug view
> Down arrow focus app
> Shift-F10 popup context
> 8 arrow up select Terminate and Relaunch
> ----------
> 16-19 keystrokes
>
> Surely there is a better way?

I don't know why Terminate and Relaunch is not a choice in Quick Access.
But, you can easily do two Quick Access invocations, fist Terminate then
Debug Last Launched.

Ctrl+3
t-e-r-m
<Enter>

then

Ctrl+3 (again)
dll
<enter>

If you're going to just count keystrokes, then I can't have that
conversation without getting frustrated ;-) Suffice it to say that I can
do the above combo in about 2.5 seconds, literally. And my fingers
haven't even memorized it yet... :-)


I also tried to assign a binding to Terminate and Relaunch but could not
get it to work (just Terminate works fine, though). I tried in 3.5M7, so
I'd say a bug report is definitely in order. Might want a separate bug
report to request that Terminate and Relaunch be included in Quick
Assist, too (I have no idea why its not, but I thought the list of
things in Quick Assist was automated; so it might be related to why the
key binding doesn't work).

Hope this helps,
Eric
Re: key bindings do nothing [message #336065 is a reply to message #336058] Mon, 18 May 2009 16:39 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Eric Rizzo wrote:
> John J. Barton wrote:
....

>> Surely there is a better way?
>
> I don't know why Terminate and Relaunch is not a choice in Quick Access.
> But, you can easily do two Quick Access invocations, fist Terminate then
> Debug Last Launched.
>
> Ctrl+3
> t-e-r-m
> <Enter>
>
> then
>
> Ctrl+3 (again)
> dll
> <enter>
>
> If you're going to just count keystrokes, then I can't have that
> conversation without getting frustrated ;-) Suffice it to say that I can
> do the above combo in about 2.5 seconds, literally. And my fingers
> haven't even memorized it yet... :-)

Of course keystrokes is just a proxy how hard/time consuming the action
is. Nevertheless, its hard for me to imagine that two X Quick Access can
ever compete with one X Ctrl+F2.

>
>
> I also tried to assign a binding to Terminate and Relaunch but could not
> get it to work (just Terminate works fine, though). I tried in 3.5M7, so
> I'd say a bug report is definitely in order. Might want a separate bug

But I'm now thinking this is hopeless. If the key bindings are
view-dependent, then I will always have to first switch views before
applying my command correct? Since all of my time goes in to view
switching, I can't gain from keybindings?

Thanks,
jjb
Re: key bindings do nothing [message #336067 is a reply to message #336065] Mon, 18 May 2009 17:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

John J. Barton wrote:
> Eric Rizzo wrote:
>>
>> I also tried to assign a binding to Terminate and Relaunch but could
>> not get it to work (just Terminate works fine, though). I tried in
>> 3.5M7, so I'd say a bug report is definitely in order. Might want a
>> separate bug
>
> But I'm now thinking this is hopeless. If the key bindings are
> view-dependent, then I will always have to first switch views before
> applying my command correct? Since all of my time goes in to view
> switching, I can't gain from keybindings?

I don't think it's hopeless because assigning a key binding to Terminate
(as opposed to Terminate and Relaunch) seemed to work as I would expect,
regardless of what view/editor I was in. A bug report will point out to
the relevant developers that something is amiss with Terminate and Relaunch.

Eric
Re: key bindings do nothing [message #336068 is a reply to message #336067] Mon, 18 May 2009 22:32 Go to previous message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Eric Rizzo wrote:
....
> regardless of what view/editor I was in. A bug report will point out to
> the relevant developers that something is amiss with Terminate and
> Relaunch.
Bug 276786 Key binding to Terminate and Relaunch Fails

Thanks for your help,
jjb
Previous Topic:Sort Preference Pages
Next Topic:removing the breadcrumb
Goto Forum:
  


Current Time: Tue Nov 12 21:09:00 GMT 2024

Powered by FUDForum. Page generated in 0.05697 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top