1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-22 04:31:21 +00:00

Allow key toggling by clicking

This commit is contained in:
John Crepezzi 2013-05-24 14:19:18 -04:00
parent abb49f2cf3
commit 2c466d069b
2 changed files with 6 additions and 1 deletions

View file

@ -362,6 +362,11 @@ haste.prototype.configureShortcuts = function() {
///// Tab behavior in the textarea - 2 spaces per tab
$(function() {
var $key = $('#key');
$(document).click(function () {
$key.fadeToggle();
});
$('textarea').keydown(function(evt) {
if (evt.keyCode === 9) {
evt.preventDefault();

File diff suppressed because one or more lines are too long