summaryrefslogtreecommitdiff
path: root/plugins/TabFocus/tabfocus.js
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-02-25 15:34:01 -0500
committerCraig Andrews <candrews@integralblue.com>2010-02-25 15:34:01 -0500
commiteb724bfdc85d0b50d6f5be60e1e11296ebe11247 (patch)
tree4b71050fb2c0fae6177bb78c6f667985b6929d9f /plugins/TabFocus/tabfocus.js
parent5acbdfbdb332c5423a4f3286a9c783bf6340020e (diff)
Add TabFocus (for die-hard Twitter users) plugin
Diffstat (limited to 'plugins/TabFocus/tabfocus.js')
-rw-r--r--plugins/TabFocus/tabfocus.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/TabFocus/tabfocus.js b/plugins/TabFocus/tabfocus.js
new file mode 100644
index 000000000..e2c1c6521
--- /dev/null
+++ b/plugins/TabFocus/tabfocus.js
@@ -0,0 +1,7 @@
+jQuery(function($){
+ $('#notice_data-text').bind('keydown',function(e){
+ if (e.which==9) {
+ setTimeout(function(){ $('#notice_action-submit').focus(); },15);
+ }
+ });
+});