NeoOffice Menu and Keyboard Shortcuts

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:49, 29 November 2005 (edit)
Sardisson (Talk | contribs)
(a new bug for us :-()
← Previous diff
Revision as of 08:23, 1 February 2006 (edit) (undo)
Sardisson (Talk | contribs)
m (category)
Next diff →
Line 52: Line 52:
{{botlangbarEN|[[Fr:Personnalisation_des_menus_et_raccourcis-claviers_%28style_Macintosh%29|Français]]}} {{botlangbarEN|[[Fr:Personnalisation_des_menus_et_raccourcis-claviers_%28style_Macintosh%29|Français]]}}
-[[Category:Tips and Hints]][[Category:NeoOffice/J]][[Category:OpenOffice.org]][[Category:Fixme]]+[[Category:Tips and Hints]][[Category:NeoOffice]][[Category:OpenOffice.org]][[Category:Fixme]]

Revision as of 08:23, 1 February 2006

Contents

Customizing the NeoOffice menus and keyboard shortcuts

Pre-Made Menu & Keyboard Configurations

Menu and keyboard configuration files to more closely approximate standard Mac OS X menu and keyboard shortcut settings can be found at

http://www.mindspring.com/~sardisson/neoj/neoj_men-kybd-cfgs.sit

You can either apply these choosing the Configure item from the Tools menu (be sure to select the appropriate radio button in the keyboard section, either for NeoOffice globally or for the appropriate module, when importing those settings) or by unzipping the exported settings files and dropping the .xml files in your ~/Library/Preferences/NeoOffice-1.x/user/config/soffice.cfg folder.

Issues and Limitations

  • Language-specific
  • Some oddness when switching OOo codebase minor versions
  • Java 1.4.x passes keystrokes first to a menu item, so they'll match any Services shortcuts [1]
    • Work-around:
      • Service Manager
      • Manually editing the Info.plist of the app providing the service
  • Outright bugs

N.B. These are English-only; the underlying OpenOffice.org code apparently rewrites entire menus rather than just including the modifications, so English menu item text replaces the native menu item text.

You can create your own configurations by using the relevant Tools->Configure dialogues. Be aware that there is an OpenOffice.org bug where editing any keyboard shortcut causes Cmd-C to become unassigned from the Edit->Copy menu item. The work-around is to delete the [Copy] command assignment from the Copy and Cmd-Insert keystrokes in the NeoOffice (global) shortcuts (this has already been done in the premade shortcuts available here).

More about customizing NeoOffice keyboard shortcuts

From a post in the Trinity forums

In Tools->Configure->Keyboard, it appears that all the available keystrokes are pre-entered; one cannot add to them. Thus, one can't apply cmd-\ or cmd-< or to an action. Further, there are no optioned (alt-ed) modifiers available. I read in one of the other threads that there was a problem including the option/alt modifier because of Unicode confusion; however, I don't see how it could be any different than the shift modifier. But then, I'm not the programmer. Question: Any way to hack OOo or Neo to add more keystroke combinations?

There are a couple of things to address here.

First, about the option key. Other platforms use their "equivalent" of the option key ("alt" on Windows) as a "command-producing" key shortcut, i.e., they'd use opt-s for save (the Mozilla folks seem pretty bad about trying to assign opt-key as command shortcuts!). On the Mac, opt-key is reserved for keyboard entry (opt-s is ß)—sort of like shift, opt is only a modifier key, not a "command" key. Cmd-opt-key and Shift-cmd-opt-key *are* valid command shortcuts on the Mac, though.

I believe it was Ed who posted somewhere here on trinity that he had lobbied the OOo folks to allow Cmd-opt-key to be a valid command shortcut for the Mac and the OOo folks either ignored him or denied the request. The fact that the Mac allows ,><\ and all sorts of other keys to be valid shortcuts (when paired with cmd, of course), also seems to be lost on the OOo folks making these decisions.

Using System Preferences to add additional keystrokes

However, all is not lost for users of NeoOffice (SOL with OOo/X11, though). Now that we have Aqua menus, you can use the OS's ability to customize keyboard shortcuts to assign other keys (as long as they don't conflict with existing shortcuts in OOo).

First, make sure NeoOffice is not running. Then open the "Keyboard & Mouse" pane of the System Preferences and click on the "Keyboard Shortcuts" tab. Click on the "Application Shortcuts" item in the box, and then the + button at the bottom left. Select NeoOffice as your application, enter the name of the NeoOffice menu item you want to assign a shortcut to and then the desired shortcut. (Be sure to match the spelling and ... or … exactly). Restart NeoOffice and voilà!

See the screenshots for examples of NeoOffice with modified keyboard shortcuts and menus.

Customized "Quickstart" Shortcuts



"Quickstart" items assigned shortcuts
via System Preferences

Adding shortcuts to the "Quickstart" menu items

A brief discussion of the issues; more logical and streamlined answer to come :-)

Issues:

  • Sharing/fighting over shortcut-command assignments
  • Context-sensitive Cmd-N
  • Hacking around "reserved" shortcuts


This article in other languages: Français
Personal tools