public function sweaver_plugin_kb::sweaver_kb_bindings in Sweaver 7
Same name and namespace in other branches
- 6 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 90 - 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' => '83',
'element' => '.save-style-popup',
'double' => TRUE,
),
'load' => array(
'title' => t('Load style popup'),
'default' => '76',
'element' => '.load-style-popup',
'double' => TRUE,
),
'publish' => array(
'title' => t('Publish style popup'),
'default' => '80',
'element' => '.publish-style-popup',
'double' => TRUE,
),
'delete' => array(
'title' => t('Delete style popup'),
'default' => '68',
'variable' => 'sweaver_styles_delete_tab',
'element' => '.delete-style-popup',
'double' => TRUE,
),
'close' => array(
'title' => t('Close popup'),
'default' => '27',
'double' => FALSE,
),
'undo' => array(
'title' => t('Undo modification'),
'default' => '65',
'double' => FALSE,
'page_callback' => 'Drupal.Sweaver.undoModification',
'message' => t('Modification undone'),
),
'redo' => array(
'title' => t('Redo modification'),
'default' => '90',
'double' => FALSE,
'page_callback' => 'Drupal.Sweaver.redoModification',
'message' => t('Modification redone'),
),
);
return $bindings;
}