浏览代码

move the focus to URL input after adding a rule

Gildas 7 年之前
父节点
当前提交
cecd391540
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      extension/ui/bg/ui-options.js

+ 1 - 0
extension/ui/bg/ui-options.js

@@ -136,6 +136,7 @@
 			ruleUrlInput.value = "";
 			ruleProfileInput.value = ruleAutoSaveProfileInput.value = singlefile.config.DEFAULT_PROFILE_NAME;
 			await refresh();
+			ruleUrlInput.focus();
 		} catch (error) {
 			// ignored
 		}