Clicking on it will open an interface where hotkeys can be configured for the given page. Since each page has a unique set of interface elements, the available options in the left hand column vary from page to page. Some interface elements can be hot-linked, but not all.
By default, some buttons are configured which any user who has access to the administrative panel, will find useful.
Each user’s settings are completely independent of those of other users. They can easily be configured not to conflict with the hotkeys of browsers.
To configure a hotkey, click on an existing one or a “not assigned” spot in the interface.
A field will appear where the key which you would like to set up for the given operation can be indicated.
The hotkey can be used immediately after the interface is closed.
The red X deletes a hotkey and frees up the given key combination. The option returns to “ not assigned”.
There are 3 buttons at the bottom of the interface:
Close – close the interface.
Default – reset all buttons to the default settings.
Delete all – delete all hotkeys.
The feature itself can be activated or deactivated globally in the Kernel module:
Additional actions can be added to the list of hotkey options at (Desktop>Settings>System settings>Keyboard shortcuts):
To add a new hotkey option (action), click the “Add” button and fill in the fields for creating a hotkey:
The Name must be filled in as the name will appear in the interface list, as must the Execute JavaScript field, which is the code to be run via the hotkey.
Class name can be left empty; it is needed for calling a given function from PHP code.
The Comment field is useful when additional information is required.
Title object, like class name is used for PHP code.
If the Use at URL field is blank, then the given action will be available wherever the hotkey icon appears. If the action is needed only on a specific page or section, then the given URL can be entered here, for example:
Code
http://127.0.0.1:84/bitrix/admin/hot_keys_list.php |
or
Code
/bitrix/admin/ |
After filling in all the fields, save the settings. The hotkey settings interface will display the newly created action.
All that is left is to assign a hotkey to the action, and test it:
You could, for example, create a hotkey for instant navigation to the most frequently visited section. To open the administration section, the JavaScript code would look like this:
Code
In this way, any action that can be performed by JavaScript can be triggered by a hotkey. Thus this feature has the potential to make nearly all regular work on a website a lot faster.
location.href='/bitrix/admin/hot_keys_list.php'; |
In the near future, hotkey settings will be importable and exportable, so that any new project can immediately be configured to the developer’s personal preference.








