This commit is contained in:
sco
2020-11-07 18:57:10 +01:00
parent e3275f2569
commit ec124a8779
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -240,6 +240,7 @@ export default {
}
}
}
//TODO filter external
this.services = [
{
+2 -2
View File
@@ -20,7 +20,7 @@ export default {
this._keyListener = function (event) {
if (event.key === "/") {
event.preventDefault();
this.$emit("search:focus");
this.$emit("search-focus");
this.$nextTick(() => {
this.$refs.search.focus();
});
@@ -28,7 +28,7 @@ export default {
if (event.key === "Escape") {
this.$refs.search.value = "";
this.$refs.search.blur();
this.$emit("search:cancel");
this.$emit("search-cancel");
}
};
document.addEventListener("keydown", this._keyListener.bind(this));