fullscreen icon indicating copy to clipboard operation
fullscreen copied to clipboard

Add current fullscreen state.

Open shallker opened this issue 12 years ago • 5 comments

Useful for switching between fullscreen: function onKeyup(ev) { if (ev.keyCode !== 75) return; // f key if (fullscreen.fulled) fullscreen.exit(); else fullscreen(); }

shallker avatar Sep 09 '13 10:09 shallker

looks good to me except the name "fulled" is weird, maybe "enabled", so that in use it would look like if (fullscreen.enabled) {

tj avatar Sep 09 '13 23:09 tj

+1 for enabled, or even just fullscreen or maybe even isFullscreen. Definitely not fulled since that's not a word.

TooTallNate avatar Sep 09 '13 23:09 TooTallNate

fullscreen.isFullscreen would be a little redundant haha

tj avatar Sep 09 '13 23:09 tj

didFullscreen hahah... jk

tj avatar Sep 09 '13 23:09 tj

I thought 'full' can be used as a verb, no? I'm too lazy to use the api if the name has more than 6 characters, or 5. fullscreen.isFullscreen doesn't sound nice. +1 for fullscreen.full or fullscreen.enabled

shallker avatar Sep 10 '13 09:09 shallker