From eae88c1add2a62b4cabb29f8a09c8235df35811a Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Thu, 9 Jul 2020 12:49:42 +0530 Subject: [PATCH] Add Ctrl+Enter search on the subscriber query exp box --- frontend/src/views/Subscribers.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Subscribers.vue b/frontend/src/views/Subscribers.vue index f9ef8c6..8be70ad 100644 --- a/frontend/src/views/Subscribers.vue +++ b/frontend/src/views/Subscribers.vue @@ -35,6 +35,7 @@
@@ -43,8 +44,7 @@ Partial SQL expression to query subscriber attributes.{{ ' ' }} - Learn more . + target="_blank" rel="noopener noreferrer"> Learn more. @@ -287,6 +287,13 @@ export default Vue.extend({ this.queryParams.queryExp = `(name ~* '${q}' OR email ~* '${q}')`; }, + // Ctrl + Enter on the advanced query searches. + onAdvancedQueryEnter(e) { + if (e.ctrlKey) { + this.querySubscribers(); + } + }, + // Search / query subscribers. querySubscribers() { this.$api.getSubscribers({