Skip to content

Commit 4567243

Browse files
committed
Focus the webview for notification settings, keyboard shortcuts.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
1 parent b5665ab commit 4567243

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/renderer/js/components/webview.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export default class WebView {
142142

143143
showNotificationSettings(): void {
144144
this.send("show-notification-settings");
145+
this.focus();
145146
}
146147

147148
focus(): void {
@@ -176,6 +177,7 @@ export default class WebView {
176177

177178
showKeyboardShortcuts(): void {
178179
this.send("show-keyboard-shortcuts");
180+
this.focus();
179181
}
180182

181183
openDevTools(): void {

0 commit comments

Comments
 (0)