3 pere
This commit is contained in:
@@ -240,6 +240,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//TODO filter external
|
||||||
|
|
||||||
this.services = [
|
this.services = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export default {
|
|||||||
this._keyListener = function (event) {
|
this._keyListener = function (event) {
|
||||||
if (event.key === "/") {
|
if (event.key === "/") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
this.$emit("search:focus");
|
this.$emit("search-focus");
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.search.focus();
|
this.$refs.search.focus();
|
||||||
});
|
});
|
||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
if (event.key === "Escape") {
|
if (event.key === "Escape") {
|
||||||
this.$refs.search.value = "";
|
this.$refs.search.value = "";
|
||||||
this.$refs.search.blur();
|
this.$refs.search.blur();
|
||||||
this.$emit("search:cancel");
|
this.$emit("search-cancel");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
document.addEventListener("keydown", this._keyListener.bind(this));
|
document.addEventListener("keydown", this._keyListener.bind(this));
|
||||||
|
|||||||
Reference in New Issue
Block a user