Commit 0d89d300 authored by Yaroslav Lushnikov's avatar Yaroslav Lushnikov 🦆

Few changes

parent ef02ce0f
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "i20 tools", "name": "i20 tools",
"version": "0.0.5", "version": "0.1.0",
"icons": { "icons": {
"16": "images/logo_square.png", "16": "images/logo_square.png",
"32": "images/logo_square.png", "32": "images/logo_square.png",
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
$('body').bind('keydown', function(event) { $('body').bind('keydown', function(event) {
if (search.wrapper.hasClass('hide-form') && if (search.wrapper.hasClass('hide-form') &&
(event.altKey === true && (event.keyCode === 68 || event.keyCode === 206))) { (event.altKey === true && (event.keyCode === 68 || event.keyCode === 206 || event.keyCode === 75))) {
search.showForm(); search.showForm();
event.preventDefault(); event.preventDefault();
} }
else if(!search.wrapper.hasClass('hide-form')) { else if(!search.wrapper.hasClass('hide-form')) {
if(event.keyCode === 27 || (event.altKey === true && (event.keyCode === 68 || event.keyCode === 206))) { if(event.keyCode === 27 || (event.altKey === true && (event.keyCode === 68 || event.keyCode === 75 || event.keyCode === 206))) {
search.closeForm(); search.closeForm();
event.preventDefault(); event.preventDefault();
} }
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
event.preventDefault(); event.preventDefault();
return false; return false;
} }
else {
search.input.focus();
}
}); });
}; };
...@@ -102,6 +105,9 @@ ...@@ -102,6 +105,9 @@
search.found.append('Введите API ключ в настройках экстеншена.') search.found.append('Введите API ключ в настройках экстеншена.')
} }
} }
else {
search.found.html('')
}
} }
search.getApiKey = function() { search.getApiKey = function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment