Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 Hardcoded CTRL+B for removing of formatting

open
nobody
None
5
2011-04-27
2011-04-27
Daniel Polansky
No

There is a hardcoded keyboard shortcut Control + B for the action "Remove formatting". That is unfortunate, as the shortcut is usually used for toggling bold (switching bold on or off). The hardcoded shortcut should better be removed.

The location in the code:

In class SHTMLEditorKitActions.ClearFormatAction:

...
this.panel = panel;
putValue(Action.NAME, SHTMLPanelImpl.clearFormatAction);
putValue(SHTMLPanelImpl.ACTION_SELECTED_KEY,
SHTMLPanelImpl.ACTION_UNSELECTED);
***putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(
KeyEvent.VK_B, KeyEvent.CTRL_MASK));***
SHTMLPanelImpl.getActionProperties(this,
SHTMLPanelImpl.clearFormatAction);
...

--Dan

Discussion