This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | + is used in Keyboard Shortcuts dialog instead of - | ||
---|---|---|---|
Product: | platform | Reporter: | Patrick Keegan <pkeegan> |
Component: | Dialogs&Wizards | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jhoffman |
Priority: | P3 | Keywords: | UI |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | TASK | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 58412 | ||
Attachments: | a proposed patch |
Description
Patrick Keegan
2004-09-09 14:54:52 UTC
Kayboard Shortcuts dialog ... Note: see javadoc of java.awt.event.KeyEvent /** * Returns a String describing the modifier key(s), such as "Shift", * or "Ctrl+Shift". These strings can be localized by changing the * awt.properties file. * * @return string a text description of the combination of modifier * keys that were held down during the event */ public static String getKeyModifiersText(int modifiers) { Should we do find&replace in returned string from this jdk's method? Created attachment 17533 [details]
a proposed patch
The attached patch contains code which Search&Replace all occurrences of '+' in returned values. No problem to integrate it. Interesting, Jirka. Thanks for the info. Does the hack you propose have any performance implications or other dangers? Jeff, should we file a bug against AWT? Jirka, please don't integrate the patch yet. Ad performance: I don't afraid of any performance regression if the patch will integrated. The set of shortcuts with some modifiers is limited, moreover the strings are short and not often recalculated. No progress here. I change to PATCH type, I'm ready to integrate if needed. I'm switching this to promo E because I'm uncomfortable making a UI change so long after UI freeze, especially when it's a hack of something that really should be fixed in the JDK. This issue had *1 votes* before move to platform component Native applications on MS Windows use "+" chars in keyboard shortcuts, closing. |