Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 16112

Summary: [Key Bindings] Conflict of keyboard shortcut key (Ctrl+B)
Product: [Eclipse Project] Platform Reporter: Kenji Uchida <uchi>
Component: UIAssignee: Chris McLaren <csmclaren>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: asahata, Darin_Swanson, david_williams, nishino, paulacox
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Kenji Uchida CLA 2002-05-16 03:30:44 EDT
Ctrl+B is assigned as a keyboard shortcut for "Build All" and is shown in the 
Project menu. It conflicts with "Bold" in PageDesigner in WSAD. 

[Impact]
Ctrl+B as shortcut for "Bold" has been used in PageDesigner since before. 
Furthermore, this shortcut is very familiar to the people who edit rich texts 
not only in PageDesigner but also in the other editors. Ctrl+B for "Build All" 
confuses them.
Comment 1 Darin Swanson CLA 2002-05-16 09:33:08 EDT
If as proposed on platform-ui-dev, you plan to switch to Ctrl+Shift+B, the jdt 
debug will have to find something new for add/remove breakpoint. We need a 
larger alphabet.
Comment 2 Tetsuro Asahata CLA 2002-06-03 16:09:51 EDT
F2 still has CTRL+B as its shortcut key.
Will you really change this on V2?

Comment 3 Nick Edgar CLA 2002-06-03 16:32:10 EDT
This will not be changed.
It was felt that too many people have become accustomed to Ctrl+B for build.

Post 2.0, we should extend the key binding story to allow views to hook their 
own accelerators, and override the ones provided by the workbench.
Comment 4 Makoto Nishino CLA 2002-06-04 00:50:22 EDT
No-no. Ctrl+B bound to Bold function is a defact standard.  You should avoid to
use that for other purpose (such as Build), or Eclipse platform would so much
abnomal in IDE's.  Imagine that what users new to Eclipse (we expect so much
more new comers than people accustomed to Ctrl+B for Build!) feel when they
press Ctrl+B expecting Bold'ing function in PageDesigner but resulted in Build
function.  If I, I would be in panic !?  A good user interface should not
disapoint users' expectation.
I would like you to please reconsider on this matter. 
Comment 5 Makoto Nishino CLA 2002-06-04 00:52:22 EDT
I couldn't change the severity field.  I think it should be "major".
Comment 6 Tetsuro Asahata CLA 2002-06-04 01:21:46 EDT
Our HTML editor has been using Ctrl+B as BOLD 
since the Eclipse V1 is released, and Ctrl+B 
as "Rebuild All" is newly assigned keyboard shortcut
in Eclipse V2.
(Actually Our HTML editor has more long history.
It was released as a stand along product in several years ago,
and Ctrl+B is always assigned as BOLD from the beggining.)

However, Eclipse V2 is still not officially released.
IDE should not breake pre-existing plugin's fuctionality.

Our editor has had forced to change many of its keyboard shortcuts 
several times, when eclipse changed or assinged new 
shortcuts, but we don't want to change the Ctrl+B.

Even if ctrl+B is common to current eclipse develpers,
it should change the key to something else like Ctrl+Alt+B.

Comment 7 Nick Edgar CLA 2002-06-04 10:20:27 EDT
Ctrl+B has been assigned to Build since R1.0.
Note that it will not conflict if the autobuild preference is on, since we 
remove the menu item for Build All in that case.
Comment 8 Tetsuro Asahata CLA 2002-06-04 19:19:51 EDT
I confirmed that Ctrl+B as "Build" exists since Eclipse R1.0.

We already know that "Rebuild All" is only available 
when autobuild is turned off.

However, I still beleive IDE should avoid to assign such de-fact standard 
shortcuts (e.g. see Java Look and Feel Design Guidelines, appendix B)
to another purpose.
Comment 9 Chris McLaren CLA 2003-02-28 12:36:33 EST
Ctrl+B is available for bold in the Text scope. Eclipse reserves Ctrl+B in the 
Global scope for build.
Comment 10 Tetsuro Asahata CLA 2003-02-28 12:58:06 EST
Does this comment mean, standard shortcut key for "Bold" which is ctrl-B and 
Eclipse shortcut key for "Build" can't co-exist?

Our editor needs *both* shortcut keys, and we don't want to use different key 
for "Build" shortcut key with other editors.

What our users expect is both shortcut keys have standard key assignment on 
Eclipse environment.


Comment 11 Chris McLaren CLA 2003-02-28 14:31:16 EST
Ctrl+B will remain 'build' in the global scope. 

You can define a 'scope' for your editor, and you can add a keybinding Ctrl+B 
to mean 'bold'. Ctrl+B will be 'build' in all other editors and views, but 
be 'bold' in your editor. 

In your editor's scope you can also add the keybinding Ctrl+Alt+B for 'build'.
 
When your editor is the active part, the menu will show Ctrl+B for bold and 
Ctrl+Alt+B for build. When any other part is active, the menu will show Ctrl+B 
for build.
Comment 12 Chris McLaren CLA 2003-02-28 14:33:35 EST
additionally, short of telling debug ui that they must give up their key 
(which i can't do), this is really a fix for the problem of conflicting keys. 
i should have marked this bug 'fixed' instead of 'wontfix'