Merge branch 'master' of github.com:silps/silps.github.io

This commit is contained in:
Silver Kuusik
2017-10-13 14:18:50 +02:00

View File

@@ -295,7 +295,7 @@ window.onload = function() {
/* key down event */
$(document).keydown(function(e) {
/* if the hotkeys are disabled or the focused element is a textarea or text input, don't use hotkeys */
if (hotkeys == false || $(e.target).is("textarea") || $(e.target).is("[type=text]")) return;
if (hotkeys == false || $(e.target).is("textarea") || $(e.target).is("[type=text]") || $(e.target).is("[class=blocklyHtmlInput]")) return;
/* select the hotkey */
switch(e.which) {
case 32: // space bar
@@ -356,7 +356,7 @@ window.onload = function() {
/* key up event */
$(document).keyup(function(e) {
/* if the hotkeys are disabled or the focused element is a textarea or text input, don't use hotkeys */
if (hotkeys == false || $(e.target).is("textarea") || $(e.target).is("[type=text]")) return;
if (hotkeys == false || $(e.target).is("textarea") || $(e.target).is("[type=text]") || $(e.target).is("[class=blocklyHtmlInput]")) return;
/* remove hover from buttons */
$('.btn').removeClass('hover');
/* if arrow keys */