Skip to content

Commit

Permalink
Focus the URI-entry field when activated.
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Aug 24, 2024
1 parent 57c270c commit 9f9787e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service/plugins/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,14 @@ const FileChooserDialog = GObject.registerClass({
_onUriButtonToggled(button) {
const header = this.get_header_bar();

// Show the URL entry
// Show and focus the URL entry
if (button.active) {
this.extra_widget.sensitive = false;
header.set_custom_title(this._uriEntry);
this._uriEntry.grab_focus();
this.set_response_sensitive(Gtk.ResponseType.OK, true);


// Hide the URL entry
} else {
header.set_custom_title(null);
Expand Down

0 comments on commit 9f9787e

Please sign in to comment.