Skip to content

Instantly share code, notes, and snippets.

@jcsalterego
Created January 24, 2009 01:00
Show Gist options
  • Save jcsalterego/51295 to your computer and use it in GitHub Desktop.
Save jcsalterego/51295 to your computer and use it in GitHub Desktop.
Bringing back the shift key on the Twitter web interface
// ==UserScript==
// @name Shift back
// @namespace http://twitter.com
// @include http://twitter.com/*
// ==/UserScript==
$ = unsafeWindow.jQuery;
var tab_hijack = function(e) {
if (e.keyCode == 9) {
$('#update-submit').focus();
return false;
}
};
$('#status').keydown(tab_hijack);
$('#text').keydown(tab_hijack);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment