Background button: Implement mnemonic activation

This commit is contained in:
Romain Vigier
2022-04-19 12:16:09 +02:00
parent 2376c67a57
commit 4a14b293da
+4
View File
@@ -80,6 +80,10 @@ var BackgroundButton = GObject.registerClass({
this.add_controller(dropTarget);
}
vfunc_mnemonic_activate() {
this.openFileChooser();
}
openFileChooser() {
this._filechooser.transient_for = this.get_root();
this._filechooser.show();