Bug 4578 - Ctrl+J & Ctrl+Enter have the same key code (1G54RJJ)
Summary: Ctrl+J & Ctrl+Enter have the same key code (1G54RJJ)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P5 major (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 4577
Blocks: 9794 21035
  Show dependency tree
 
Reported: 2001-10-11 14:19 EDT by Mike Wilson CLA
Modified: 2002-07-27 01:46 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Wilson CLA 2001-10-11 14:19:17 EDT
See : 1G54RAJ: SWT:ALL - Ctrl+Backspace & Ctrl+del have the same key code and key event
and try with Ctrl+J & Ctrl +Enter

NOTES:

output
**********************
* KeyEvent: keyChar=  (0x0), keyCode=0x40000, stateMask=<none>
* KeyEvent: keyChar=  (0xA), keyCode=0x0, stateMask=Ctrl 
* KeyEvent: keyChar=  (0x0), keyCode=0x40000, stateMask=<none>
* KeyEvent: keyChar=  (0xA), keyCode=0x0, stateMask=Ctrl 
**********************

CM (2/5/01 9:59:19 PM)
	Control-J is equal to LF (ASCII 0x0A)

SN (2/6/01 3:19:52 PM)
	No plan to fix this at this time.
Comment 1 DJ Houghton CLA 2001-10-29 16:23:04 EST
PRODUCT VERSION:
Platfomr 0.12b
swt 0.051
Win Nt

CQ : Afeb772

Comment 2 Mike Wilson CLA 2002-05-23 16:05:29 EDT
SN to comment.
Comment 3 Steve Northover CLA 2002-07-22 18:57:19 EDT
The current thinking is that we will set both the character and keyCode fields 
to distinguish between these cases.
Comment 4 Steve Northover CLA 2002-07-26 16:56:05 EDT
Fixed for Windows and Motif.  There are now keyCodes for BS, CR, DEL, ESC, LF 
and TAB that are the same as the character value (ie. when the user presses CR, 
keyCode=SWT.CR and character=SWT.CR, when the user presses ^M, keyCode=0 and 
character=SWT.CR).

SSQ to fix for GTK and Photon and then close this PR.
Comment 5 Silenio Quarti CLA 2002-07-27 01:46:22 EDT
Fixed on Photon and GTK (> 20020726).