Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358365

Summary: ALT GR Key forces Undo
Product: z_Archived Reporter: Fabian Laubacher <fabian.laubacher>
Component: ScoutAssignee: Daniel Wiehl <daniel.wiehl>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: daniel.wiehl, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows All   
Whiteboard:

Description Fabian Laubacher CLA 2011-09-21 03:58:31 EDT
Build Identifier: 

ALT GR + Z Key (for special Character Z) forces Undo

Reproducible: Always

Steps to Reproduce:
Press ALT GR and Z -> Forces Undo
Comment 1 Daniel Wiehl CLA 2011-09-21 05:38:13 EDT
21.09.2011 dwi
BSI ticket #106'282
Bugzilla ticket #358365
Problem:
If special characters represented by 'AltGr' + 'z' or 'AltGr' + 'y' are inserted into a textfield, the undo or redo action
is perfomred instead of simply insert this special character.
Solution:
To properly intercept Ctrl-Z/Ctrl-Y keystrokes, it is not sufficient to only test for the 'Ctrl'-key being pressed.
Additionally, it must be checked that the 'Alt' key is not pressed. Otherwise, if heading for a special character
represented by 'Alt-Gr' + 'Z', that would result in an unwanted undo event.
That is because on Windows systems, the key 'Alt Gr' is composed of both of the keys, 'Ctrl' and 'Alt', respectively.
Plug-Ins changed:
- org.eclipse.scout.rt.ui.swing [UndoableEditObserver.class]
Migration:
None
Comment 2 Matthias Zimmermann CLA 2011-10-11 02:58:07 EDT
shipped with 3.7.1