소스 검색

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
 		}