The Keymap Editor is viewable in all editions of JBuilder. It's a handy way to review the keyboard shortcuts that JBuilder uses in your preferred editor emulation.
You can reach the Keymap Editor in two ways:
Both of these actions will bring up the Keymap Editor.
These are features of JBuilder Professional and Enterprise
You can design your own keymap using the OpenTools API, but if you just want to tune an existing keymap, you can do so directly in the JBuilder IDE.
The current keybindings are listed in the Keybindings table. Click the Action or Keystroke column heading to sort the list alphabetically by either category. Click the heading again to reverse the sort order.
Select the keybinding you want to alter. If you click Remove, the keystroke sequence will be unbound from the selected action and it will be removed from the list. However, if you click either Change or Add, the New Keystroke dialog box will come up.
When you have changed the keybindings to suit your needs, click OK to apply the changed keybindings immediately.
If you decide not to keep changes you just made, click Cancel to return to the AppBrowser without retaining any of those changes. Clicking Cancel will still retain changes you made and retained before, however.
If you want to return all the keybindings to their original default values, losing all the changes you have made to the keymap, click Reset Keymap.
The New Keystroke dialog looks the same for both Change and Add, but what it does with what you enter is different:
Once you're in the New Keystroke dialog, type in the keystroke combination you want to use. If the combination involves modal keys, like Ctrl or Alt, you can either check the relevant checkboxes in the Properties area or press the modal keys on your keyboard.
Type in the keystroke combination exactly as you would use it. For instance, to make a function map to Ctrl + Shift + d, hold down the Ctrl key and the Shift key then press d. The keystroke sequence shows in the Type Any Keystroke Combination field and the Properties checkboxes for Ctrl and Shift are automatically checked.
Note: Emacs emulation users, the New Keystroke dialog for Emacs lets you choose to map to the main keymap or to one of the two subkeymaps.
If the keystroke combination you want to use is already bound to a different action, a message will appear near the bottom of the dialog box:
If you want to leave that keystroke combination bound to its old action, just retype a new keystroke combination for the chosen action. However, if you want to bind that keystroke combination to the new action instead, click OK. This will unbind the old keybinding, save the new keybinding, and return you to the Keymap Editor.
After you have changed or added a keybinding, click OK or press Enter to make the change and return to the Keymap Editor. You can click Add or Change again and alter another keybinding. The keybindings you change will be in bold italic in the Keymap Editor table, so they will be easy to see.
If you decide to discard the changes you made in the New Keystroke dialog, click Cancel to return to the Keymap Editor without saving your changes. When you're satisfied with the changes you make in the New Keystroke dialog, click OK to save them and return to the Keymap Editor.
You can discard all of your changes and return to the original default keybindings by clicking Reset Keymap.