Show Keybind In Gmail

By Kyosuke Last update Aug 11, 2006 — Installed 1,402 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Matthew Schultz Scriptwright

h (for help) also gets you the screen, it's bigger now (easier to read) and it focuses so you don't have to use the mouse to click first to focus and scroll.

--- showkeybindingmail_dist.user.js 2007-01-12 22:40:04.946278362 -0600
+++ showkeybindingmail.user.js 2007-01-12 22:41:24.074787639 -0600
@@ -67,7 +67,7 @@
var self = this;

with(this.elm.style) {
- height = '70%';
+ height = '95%';
width = '60%';
}

@@ -92,7 +92,11 @@

toggle: function() {
this.load();
- this.elm.style.display = this.elm.style.display ? '' : 'none';
+ if (this.elm.style.display){
+ this.elm.style.display = '';
+ this.elm.focus();
+ }
+ else this.elm.style.display = 'none';
}
};

@@ -108,7 +112,8 @@
function(e) {
var target = e.target.tagName;
if(target == 'INPUT' || target == 'TEXTAREA') return;
- if(e.charCode == 63)
+ //Accessible by ? or h
+ if(e.charCode == 63 || e.charCode == 104)
obj.toggle();
},
false

 
Mike Butler User

Very nice - one of those "why didn't google provide it in the first place?" doohickeys.

 
Kyosuke Script's Author

Thanks ajg23. I added http:// url.., now

 
ajg23 User

Helpful--thought I knew everything about keys but didn't!

**NOTE** If it is not working, you need to add http://mail.google.com/mail/* to "included pages" (currently has only https://...)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel