Bug 96615 - StyledText and Text keybindings differ on Mac
Summary: StyledText and Text keybindings differ on Mac
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.2 RC2   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 95950
  Show dependency tree
 
Reported: 2005-05-25 10:28 EDT by Randy Hudson CLA
Modified: 2006-04-26 15:16 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2005-05-25 10:28:39 EDT
ALT+LEFT should be previous word.  COMMAND+LEFT should be equivalent to HOME.  
similar for RIGHT.

bug 95950 is another manifestation.
Comment 1 Felipe Heidrich CLA 2005-05-26 11:38:09 EDT
COMMAND+ARROW_LEFT  => line start (visual start in case of wrapped line)
COMMAND+ARROW_RIGHT => line end (visual end in case of wrapped line)
COMMAND+ARROW_UP    => document start
COMMAND+ARROW_DOWN  => document end
ALT+ARROW_LEFT  => previous word
ALT+ARROW_RIGHT => next word
(ALT+ARROW_UP    => line start (logical start in case of wrapped line))
(ALT+ARROW_DOWN  => line end (logical start in case of wrapped line))

StyledText only has one notion of 'line start' doesn't matter if the line 
wraps or not. Therefore I won't add binding to ALT+ARROW_UP and ALT+ARROW_DOWN 
to StyledText.
Comment 2 Felipe Heidrich CLA 2005-05-26 14:07:14 EDT
I've the code ready to be released for RC1 but if I release it and nobody else 
does it we gonna break carbon-eclipse.
Comment 3 Douglas Pollock CLA 2005-06-01 11:51:22 EDT
I'm not sure these look right.  At the very least, "Command+Right" is reserved
for changing keyboard layouts.

Please see
"http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGKeyboardShortcuts/chapter_20_section_1.html".
Comment 4 Randy Hudson CLA 2005-06-01 12:59:13 EDT
(In reply to comment #3)
> I'm not sure these look right.  At the very least, "Command+Right" is reserved
> for changing keyboard layouts.
> Please see
> "http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuide
lines/XHIGKeyboardShortcuts/chapter_20_section_1.html".

Who cares. The native Text control uses Command+Right, Safari uses it, and so 
does Eclipse 3.0. Obviously changing Roman scripts or whatever is not something 
that a normal Mac user does.

FH, HOME and END will continiue to work too, right?
Comment 5 Felipe Heidrich CLA 2005-06-01 13:50:28 EDT
Not sure what to do about HOME and END keys, do you want keep the current 
behaviour (line start, line end)? In native behaviour is: home - scroll left; 
end - scroll right. But I don't have these in ST.
Comment 6 Randy Hudson CLA 2005-06-01 14:32:12 EDT
(In reply to comment #5)
> Not sure what to do about HOME and END keys, do you want keep the current 
> behaviour (line start, line end)? In native behaviour is: home - scroll left; 
> end - scroll right. But I don't have these in ST.

I think HOME == CTRL+HOME on win32, END = CTRL+END on win32. The scroll 
behavior depends on whether you have MULTI/WRAP set, it seems.
Comment 7 Douglas Pollock CLA 2005-06-01 14:58:55 EDT
See my comments in Bug 95950.
Comment 8 Felipe Heidrich CLA 2006-04-13 14:43:28 EDT
fixed in HEAD > 20060413, see bug 95950.