public function sweaver_plugin_kb::sweaver_kb_bindings in Sweaver 6
Same name and namespace in other branches
- 7 plugins/sweaver_plugin_kb/sweaver_plugin_kb.inc \sweaver_plugin_kb::sweaver_kb_bindings()
Possible keyboard bindings.
2 calls to sweaver_plugin_kb::sweaver_kb_bindings()
- sweaver_plugin_kb::sweaver_form_css_js in plugins/
sweaver_plugin_kb/ sweaver_plugin_kb.inc - Frontend css and js.
- sweaver_plugin_kb::sweaver_menu_callback in plugins/
sweaver_plugin_kb/ sweaver_plugin_kb.inc - Keyboard bindings settings form.
File
- plugins/
sweaver_plugin_kb/ sweaver_plugin_kb.inc, line 99 - Key bindings plugin.
Class
- sweaver_plugin_kb
- @file Key bindings plugin.
Code
public function sweaver_kb_bindings() {
$bindings = array(
'save' => array(
'title' => t('Save style popup'),
'default' => 's',
'element' => '.save-style-popup',
'double' => TRUE,
),
'load' => array(
'title' => t('Load style popup'),
'default' => 'l',
'element' => '.load-style-popup',
'double' => TRUE,
),
'publish' => array(
'title' => t('Publish style popup'),
'default' => 'p',
'element' => '.publish-style-popup',
'double' => TRUE,
),
'delete' => array(
'title' => t('Delete style popup'),
'default' => 'd',
'variable' => 'sweaver_styles_delete_tab',
'element' => '.delete-style-popup',
'double' => TRUE,
),
'close' => array(
'title' => t('Close popup'),
'default' => 'esc',
'double' => FALSE,
),
);
return $bindings;
}