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 5996 Details for
Bug 42225
Can't assign command to Ctrl+Backspace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for KeySupport
(text/plain), 1.72 KB, created by
Douglas Pollock
on 2003-09-04 15:48:57 EDT
(
hide
)
Description:
Patch for KeySupport
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2003-09-04 15:48:57 EDT
Size:
1.72 KB
patch
obsolete
>Index: KeySupport.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeySupport.java,v >retrieving revision 1.8 >diff -u -r1.8 KeySupport.java >--- KeySupport.java 25 Aug 2003 22:49:27 -0000 1.8 >+++ KeySupport.java 4 Sep 2003 19:40:59 -0000 >@@ -34,12 +34,34 @@ > if (key == 0) > key = event.keyCode; > else { >- if (0 <= key && key <= 0x1F) { >- if ((event.stateMask & SWT.CTRL) != 0 && event.keyCode != event.character) >- key += 0x40; >- } else { >- if ('a' <= key && key <= 'z') >- key -= 'a' - 'A'; >+ // Lower range characters might mean that the character is an escape >+ if (0 <= key && key <= 0x1F) { >+ if ((event.stateMask & SWT.CTRL) != 0 && event.keyCode != event.character) { >+ /* On Windows XP, "Ctrl+Return" is represented as character >+ * 0x0A and key code 0x0D. On Linux-GTK, "Ctrl+Return" is >+ * represented as character 0x0D and key code 0x0D. >+ */ >+ if ((key == 0x0A) && (event.keyCode != 0x00)) { >+ key = event.keyCode; >+ } else { >+ /* Shift the Ctrl-escaped character from the lower range >+ * into the character range. >+ */ >+ key += 0x40; >+ } >+ } >+ >+ } else if ('a' <= key && key <= 'z') { >+ // Shift lowercase letters to uppercase letters. >+ key -= 'a' - 'A'; >+ >+ } else if (((event.stateMask & SWT.CTRL) != 0) && (key == 0x7F)) { >+ /* On Windows XP, "Ctrl+Backspace" is represented as character >+ * 0x7F and key code 0x08. On Linux-GTK, "Ctrl+Backspace" is >+ * is represented as character 0x08 and key code 0x08. >+ */ >+ key = event.keyCode; >+ > } > } >
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 42225
:
5996
|
5999
|
6089