diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-11-02 09:55:38 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-11-02 09:55:38 +0100 |
commit | 09be405bb8004c8ec6e568b394b8af485645698f (patch) | |
tree | b5e041a1161b6b3da809784e8d0b31ca95cb1089 | |
parent | 6253fb14a0df2b1376f307da61837e7ca5cc2877 (diff) | |
download | qutebrowser-09be405bb8004c8ec6e568b394b8af485645698f.tar.gz qutebrowser-09be405bb8004c8ec6e568b394b8af485645698f.zip |
Pre-select default text for prompts
-rw-r--r-- | doc/changelog.asciidoc | 2 | ||||
-rw-r--r-- | qutebrowser/mainwindow/prompt.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 129378b07..027fd0938 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -39,6 +39,8 @@ Changed the case for character sets starting with a literal `[` or containing literal character sequences `--`, `&&`, `~~`, or `||`. To avoid a warning, remove the duplicate characters or escape them with a backslash. +- If `prompt(..., "default")` is used via JS, the default text is now + pre-selected in the prompt shown by qutebrowser. v1.14.0 (2020-10-15) -------------------- diff --git a/qutebrowser/mainwindow/prompt.py b/qutebrowser/mainwindow/prompt.py index 32fd9709e..42b6c3d97 100644 --- a/qutebrowser/mainwindow/prompt.py +++ b/qutebrowser/mainwindow/prompt.py @@ -590,6 +590,7 @@ class LineEditPrompt(_BasePrompt): self._vbox.addWidget(self._lineedit) if question.default: self._lineedit.setText(question.default) + self._lineedit.selectAll() self.setFocusProxy(self._lineedit) self._init_key_label() |