Bug 57671 - [key binding] Scroll down keybinding should be CTRL+SHIFT+ARROW
Summary: [key binding] Scroll down keybinding should be CTRL+SHIFT+ARROW
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-04-06 17:46 EDT by Randy Hudson CLA
Modified: 2007-06-22 10:04 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 Randy Hudson CLA 2004-04-06 17:46:48 EDT
A windows control is scrolled (without changing focus item or selected item) 
by invoking CTRL+SHIFT+UP/DOWN.

Eclipse is currently using CTRL+UP/DOWN, however this is reserved for changing 
focus item without changing selection.  GEF is using the accessibility 
convention of CTRL+ARROW, and therefore cannot use the default eclipse 
keybinding for scroll up/down.  If eclipse would switch, we could reuse the 
keybinding.
Comment 1 Douglas Pollock CLA 2004-04-07 10:40:50 EDT
Moving to Platform Text, as I believe they own these commands. 
Comment 2 Dani Megert CLA 2004-04-27 06:35:02 EDT
Platform text defines Scroll Up/Down which is bound to Ctrl+ArrowUp/Down in the
"Editing Text" context. I cannot find a global up/down command.

Can you give more details. What do you mean by Ctrl+ARROW (up, down, left, right)?
Comment 3 Randy Hudson CLA 2004-04-27 10:08:24 EDT
Scroll Up/Down is not restricted to text editing contexts.  It applies to 
Trees, Tables, and graphical applications.  So move it up to the default 
context.  There is no global action, but there are the keybindings, which could 
have "global" context.  I think that's "in windows and dialogs" or something 
like that.

The keybindings (and optionally actions in text editor) for Scroll Left/Right 
are missing.
Comment 4 Dani Megert CLA 2004-04-27 10:31:42 EDT
It's not Text components business to declare this action in global scope.
Comment 5 Douglas Pollock CLA 2004-04-27 10:38:44 EDT
"org.eclipse.ui.edit.text.scroll.lineDown" and 
"org.eclipse.ui.edit.text.scroll.lineUp" are both declared in 
"org.eclipse.ui.workbench.texteditor".  I don't feel it is a good idea to 
declare key bindings in "org.eclipse.ui" for plug-in's that are dependent on 
"org.eclipse.ui". 
 
Nice try though.  :) 
Comment 6 Dani Megert CLA 2004-04-27 10:43:05 EDT
Doug,

Randy is asking for general scroll up/down. We define scroll line up/down

>I don't feel it is a good idea to declare key bindings in "org.eclipse.ui" for
>plug-in's that are dependent on "org.eclipse.ui". 
Not sure what you mean here. Doesn't it already define lots of commands?
Comment 7 Douglas Pollock CLA 2004-04-27 10:48:21 EDT
Randy seems to be wanting the key binding in text editor, but moved to a higher 
context.  This is still possible from your plug-in.  Right now, you guys define 
those commands, so unless you want to move them to workbench or ide, there's 
not much we can do.  I don't feel that duplicating the command is a great idea. 
Comment 8 Dani Megert CLA 2004-04-27 10:55:09 EDT
scrolling a line might be possible in Trees and Tables but not in graphical
applications as asked for.
Comment 9 Douglas Pollock CLA 2004-04-27 11:06:36 EDT
I don't believe he's asking that you implement the functionality, only that the 
command's key binding be made available in a more general context.  It would 
then be possible for others to provide their own handlers for their own types 
of editors and views. 
 
But I'm just guessing at this point.  Perhaps Randy will have more info when he 
comes into work today. 
Comment 10 Randy Hudson CLA 2004-04-27 11:37:28 EDT
We are not scrolling a line.  Just some small percentage of the client area. So 
I guess we wouldn't be able to use the command unless its translated label were 
generic such as "scroll down".  If this isn't possible that's fine.  However, 
there is an existing convention which is being ignored.
Comment 11 Douglas Pollock CLA 2004-04-27 11:52:40 EDT
It is not currently possible to allow handlers to override the text of a 
command.  It is possible to add this support.  The original intention was to 
add this support; I'm not sure why it wasn't added before Chris left.  If you 
would like Platform UI to provide that support, please open an enhancement 
request. 
 
Comment 12 Randy Hudson CLA 2004-04-27 11:55:34 EDT
So to clarify even more <g>, the original issue is:
1) Windows uses CTRL+SHIFT+DOWN to invoke "line down".  Eclipse doesn't.

The secondary issue is:
2) Can the workbench relabel and promote such actions to be generic in context.

>when he comes into work today. 
My first comment was at 10:00 AM today :-P
Comment 13 Dani Megert CLA 2004-04-27 12:04:53 EDT
re 1) What do you mean by "Windows"? E.g. Word or Notepad which definitely are 
Windows apps do not behave as you outlined.
Comment 14 Randy Hudson CLA 2004-04-27 13:12:24 EDT
windows == win32: such as Tree, Table, List, Text(SWT.MULTI).  Not sure why 
microsoft only supports this keybindings sometimes and not other places.

Anyway, using CTRL+SHIFT+UP would be consistent with the few existing native 
controls.  Using CTRL+UP to navigate methods would be consistent with using 
CTRL+UP in word processors to navigate "paragraphs", and also is somewhat 
consistent with CTRL+RIGHT, and CTRL+PAGEUP.
Comment 15 Douglas Pollock CLA 2004-04-27 16:06:03 EDT
Randy can you file a request for enhancement for (2).  Assign it to me, and 
preface it with "[Commands]".  It will likely not be looked at for 3.0, but it 
is something I'd like to provide in the 3.1 time frame. 
Comment 16 Dani Megert CLA 2004-04-28 02:24:35 EDT
>windows == win32
I knew ;-) Please give me some concrete Win X *text editing* apps that behave as
outlined above. I tried all my daily apps and none behaves as you describe.

re 2: Once 2 is in place in Platform UI, Text can retarget that command for
up/down and drop his own.
Comment 17 Randy Hudson CLA 2004-04-28 10:42:45 EDT
I really don't know any windows text controls which allow CTRL+SHIFT+UP==SCROLL 
UP. Nor any cases where CTRL+UP==SCROLL UP.
Comment 18 Dani Megert CLA 2004-04-28 10:46:36 EDT
Setting to remind. Will reconsider once global scroll action is in-place.
Comment 19 Dani Megert CLA 2007-06-22 09:59:07 EDT
Get rid of deprecated state.
Comment 20 Dani Megert CLA 2007-06-22 10:04:26 EDT
.