From 4a14b293da5a7511fc5217c27fb73a7986425349 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Tue, 19 Apr 2022 12:16:00 +0200 Subject: [PATCH] Background button: Implement mnemonic activation --- src/preferences/BackgroundButton.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/preferences/BackgroundButton.js b/src/preferences/BackgroundButton.js index 033dfdf..01e712f 100644 --- a/src/preferences/BackgroundButton.js +++ b/src/preferences/BackgroundButton.js @@ -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();