3 pere
This commit is contained in:
@@ -240,6 +240,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
//TODO filter external
|
||||
|
||||
this.services = [
|
||||
{
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user