Robert Vojta wrote:
Hallo,
I just started collecting Mac OS X shortcuts violations, prepared CWS
macshortcuts01 and started to fix some of them. You can track ongoing
work at:
http://wiki.services.openoffice.org/wiki/Mac_OS_X_Porting_-_Keyboard_Shortcuts
Especially sections 4.2 Roadmap and 4.3 Common Shortcuts.
Until now, all shortcuts can be divided into three sections.
1. Apple reserved shortcuts
These shortcuts (like F9, F11, F12, ...) are Apple reserved and these
shortcuts are intercepted by Mac OS X. It means, that OpenOffice.org
will be never notified about this shortcut -> shortcut doesn't work.
2. Apple HIG recommendations
2.1. Easy fixes
These shortcuts are recommended by Apple HIG and Mac OS X users expect
them. For example Cmd-L should be Cmd-{, Cmd-R should be Cmd-}, Cmd-E
should be Cmd-|, etc.
2.2 Deeper changes - change/add behavior
For example movements with Option key. OO.o jumps to the beginning of
the next word, but according to HIG, it should jump to the end of the
current work, etc. Here we should probably introduce new .uno:...
command to jump properly. Same for lines - OO.o jumps to the end of
the current line, but when you use the shortcut again, it doesn't jump
to the end of the next line, etc.
2.3 Functionality not implemented
These shortcuts are in category of unimplemented functionality. For
example Deselect all. According to HIG, Shift key should trigger
opposite action. Cmd-A is for Select all, Cmd-Shift-A should trigger
Deselect all. These shortcuts are nice to have, but previous defects
should be fixed first.
Hi Robert,
As these changes are UI relevant and they affect help (sometimes), ...
I would like to proceed with some standard steps to have this properly
integrated and approved. What do you propose? Someone proposed
Renaissance project, but IMHO it's a long way and there's no need to
reinvent wheel because of Apple HIG. And Renaissance should follow
Apple HIG -> results should be same.
I fully understand that you want to have Mac specific shortcuts. As I
don't use Apple computers I need assistance if there are
system-dependent questions. There might be problems with Mac specific
modifier keys. Currently I am not sure if VCL already supports these
keys or not. I am sure that support for these keys must be added to the
framework code which maps the shortcut definitions to toolkit key codes.
May be it's also necessary to extend/add toolkit structures.
How one can configure multiplatform shortcuts? Shortcuts are defined
in more than one places. All shortcuts definitions should be modified?
Or some of them are deprecated? What's the best way to implement all
mentioned changes?
Historically shortcuts were not system-dependent. Therefore there is no
integrated way to maintain system-dependent shortcuts. Fortunately we
moved the shortcut definitions from self-defined xml format files to one
XCU configuration file. A solution would be to maintain two different
configuration files, one for Windows/Linux and one for the Mac (see
officecfg/registry/data/org/openoffice/Office/Accelerator.xcu), e.g.
Accelerator-Mac.xcu. This file will be built and delivered as the
classic Accelerator.xcu. In the scp2 project there must be a distinction
between the "classic" Accelerator.xcu and Accelerator-Mac.xcu. This can
be done via #ifdef preprocessor statements, see the definition within
scp2/source/ooo/file_ooo.scp.
#idef MAC
File gid_File_Oo_Office_Accelerators_Xcu
TXT_FILE_BODY;
Styles = (PACKED, SCPZIP_REPLACE);
Dir = gid_Dir_Share_Registry_Data_Org_Openoffice_Office;
Name = "/registry/data/org/openoffice/Office/Accelerators-Mac.xcu";
End
#else
File gid_File_Oo_Office_Accelerators_Xcu
TXT_FILE_BODY;
Styles = (PACKED, SCPZIP_REPLACE);
Dir = gid_Dir_Share_Registry_Data_Org_Openoffice_Office;
Name = "/registry/data/org/openoffice/Office/Accelerators.xcu";
End
#endif
We would like to implement these changes "at once", so, user will not
be confused with shortcut changes in minor releases. Our current
target is 3.2, but can be later. There's also Mac OS X Shortcuts meta
issues to track all issues. Not all of them were reported yet.
Please try to use the proposed way with shortcuts that can be mapped. I
cannot promise that it will work from the scratch. Therefore if you have
problems or need further assistance please contact me again. If this
solution is possible we can try to extend the code in framework/toolkit.
I am quite sure that we will find a acceptable way to support
system-dependent shortcuts.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@framework.openoffice.org
For additional commands, e-mail: dev-h...@framework.openoffice.org