Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 6272 Details for
Bug 43800
[KeyBindings] "Null" and strange characters in key sequence entry widget
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
KeySupport
org.eclipse.ui.workbench-Bug43800.patch (text/plain), 1.34 KB, created by
Douglas Pollock
on 2003-09-29 11:00:18 EDT
(
hide
)
Description:
KeySupport
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2003-09-29 11:00:18 EDT
Size:
1.34 KB
patch
obsolete
>Index: Eclipse UI/org/eclipse/ui/internal/keys/KeySupport.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeySupport.java,v >retrieving revision 1.11 >diff -u -r1.11 KeySupport.java >--- Eclipse UI/org/eclipse/ui/internal/keys/KeySupport.java 25 Sep 2003 04:47:13 -0000 1.11 >+++ Eclipse UI/org/eclipse/ui/internal/keys/KeySupport.java 29 Sep 2003 14:43:03 -0000 >@@ -147,7 +147,7 @@ > */ > public static int convertEventToUnmodifiedAccelerator(Event event) { > int modifiers = event.stateMask & SWT.MODIFIER_MASK; >- char character = (char) event.keyCode; >+ int character = event.keyCode; > return modifiers + toUpperCase(character); > } > >@@ -265,13 +265,14 @@ > /** > * Makes the given character uppercase if it is a letter. > * >- * @param character >+ * @param keyCode > * The character to convert. > * @return The uppercase equivalent, if any; otherwise, the character > * itself. > */ >- private static char toUpperCase(char character) { >- return Character.isLetter(character) ? Character.toUpperCase(character) : character; >+ private static int toUpperCase(int keyCode) { >+ char character = (char) keyCode; >+ return Character.isLetter(character) ? Character.toUpperCase(character) : keyCode; > } > > private KeySupport() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43800
: 6272