Microsoft KB Archive/309131

= HOW TO: Disable a Custom Shortcut Key with a System Policy Setting in Office XP =

Article ID: 309131

Article Last Modified on 1/3/2006

-

APPLIES TO


 * Microsoft Office XP Professional Edition
 * Microsoft Office XP Standard Edition
 * Microsoft Office XP Developer Edition
 * Microsoft Office XP Small Business Edition
 * Microsoft Office XP Standard Edition for Students and Teachers

-



This article was previously published under Q309131



IN THIS TASK
SUMMARY
 * Disabling a Custom Shortcut Key with a System Policy Setting



SUMMARY
This step-by-step guide describes how to fully disable a shortcut key. Many Office XP commands have corresponding shortcut key assignments. If you disable a menu command and a toolbar button through a policy, a user can still run a command by using the shortcut key. To make the option completely unavailable, you must also disable the shortcut key.

back to the top

Disabling a Custom Shortcut Key with a System Policy Setting
In Office XP, disabling the predefined (built-in) or custom shortcut key for a command requires that you know how to enter the shortcut key ID into the Policy Editor. You can disable any custom shortcut key by using the System Policy Editor, even if the item is not listed in the policy template.

To disable a custom shortcut key with a policy, follow these steps:  Start the System Policy Editor. Double-click the policy profile you want to modify. Expand the Office program by clicking the plus sign (+) or double-clicking the name of the program that contains the custom shortcut key you want to disable. Expand the Disable items in user interface node. Expand the Custom node. Click to select the Disable shortcut keys check box. In the Settings for Disable shortcut keys section, click Show. In the Show Contents box, click Add. In the Add Item box, type the key and modifier values for the shortcut key. Use the following syntax:

key,modifier

For example, to disable the shortcut key ALT+K, type 75,16</li></ol>

If you create this policy and place it on your domain controller, the log on process for a user automatically enforces the settings in the policy file. It adds the following subkey to the registry:

\HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\10.0\Excel\DisabledShortcutKeysList

The subkey has the following values

Value name: KeyModx Data type: REG_SZ (string) Value data: 75,16

where x is an integer.

When Excel starts, it examines this registry setting and checks to see if a value is present. If the entry is 77,12, it turns off the custom shortcut key (in this case CTRL+SHIFT+M); if the value is later changed to 0 (zero), it turns on the shortcut key. Note that you can use any value name in this registry key and supply an appropriate shortcut key combination to turn off the shortcut key.

This is a unique registry entry because it is a list of KeyModx entries. The x is an integer that is incremented by 1 for each entry in the list. Examples of KeyModx entries in the registry are:

KeyMod1 = 72,0

KeyMod2 = 74,4

KeyMod3 = 81,8

KeyMod4 = 69,12

KeyMod5 = 70,16

KeyMod6 = 73,20

KeyMod7 = 78,24

KeyMod8 = 88,28

back to the top

Keywords: kbhowtomaster KB309131

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.