1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
- }
- class TabFocusPlugin extends Plugin
- {
- function __construct()
- {
- parent::__construct();
- }
- function onEndShowScripts($action)
- {
- $action->script($this->path('tabfocus.js'));
- }
- function onPluginVersion(&$versions)
- {
- $versions[] = array('name' => 'TabFocus',
- 'version' => GNUSOCIAL_VERSION,
- 'author' => 'Craig Andrews and Paul Irish',
- 'homepage' => 'http://status.net/wiki/Plugin:TabFocus',
- 'rawdescription' =>
-
- _m('TabFocus changes the notice form behavior so that, while in the text area, pressing the tab key focuses the "Send" button, matching the behavior of Twitter.'));
- return true;
- }
- }
|