Compare commits
1 Commits
master
...
toggle_key
Author | SHA1 | Date |
---|---|---|
John Crepezzi | 2c466d069b |
|
@ -362,6 +362,11 @@ haste.prototype.configureShortcuts = function() {
|
||||||
///// Tab behavior in the textarea - 2 spaces per tab
|
///// Tab behavior in the textarea - 2 spaces per tab
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
|
var $key = $('#key');
|
||||||
|
$(document).click(function () {
|
||||||
|
$key.fadeToggle();
|
||||||
|
});
|
||||||
|
|
||||||
$('textarea').keydown(function(evt) {
|
$('textarea').keydown(function(evt) {
|
||||||
if (evt.keyCode === 9) {
|
if (evt.keyCode === 9) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue