- Joined
- Sep 3, 2014
- Messages
- 6,244
- Likes
- 13,130
- Degree
- 9
If you guys have ever tried to code keyboard shortcuts or even keyboard commands in javascript or actionscript, you know it's a giant pain the butt.
Enter easykeyjs - http://www.blinkingcaret.com/2016/02/24/easykeyjs/
Whoever it is that runs The Blinking Caret decided to create a library of functions that greatly reduces the complexity of creating these commands while giving it an intuitive syntax.
For example, this:
becomes:
I know there's lots of established and hopeful SaaS guys on here. If you have an app that people LIVE IN on the desktop, giving these types of shortcuts is a godsend once they are learned.
This is the hero your customers need and deserve (or however the Batman quote goes).
Enter easykeyjs - http://www.blinkingcaret.com/2016/02/24/easykeyjs/
Whoever it is that runs The Blinking Caret decided to create a library of functions that greatly reduces the complexity of creating these commands while giving it an intuitive syntax.
For example, this:
Code:
$(document).keydown(function(e){
if (e.which == 13) //enter
reloadResults();
else if (e.which == 37) //left arrow
previousPage();
else if (e.which == 39) //right page
nextPage();
});
becomes:
Code:
$(document)
.onEnterKeyDown(reloadResults)
.onLeftArrowKeyDown(previousPage)
.onRightArrowKeyDown(nextPage);
I know there's lots of established and hopeful SaaS guys on here. If you have an app that people LIVE IN on the desktop, giving these types of shortcuts is a godsend once they are learned.
This is the hero your customers need and deserve (or however the Batman quote goes).