[dconf-editor] Fix Copy action.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Fix Copy action.
- Date: Tue, 13 Feb 2018 06:31:39 +0000 (UTC)
commit 2641155058b369f844edafc7d5fe9801a1275e7d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Feb 13 07:31:21 2018 +0100
Fix Copy action.
editor/dconf-window.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index b7ae3b8..606525e 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -678,7 +678,8 @@ class DConfWindow : ApplicationWindow
string name = (!) (Gdk.keyval_name (event.keyval) ?? "");
Widget? focus = get_focus ();
- if (!(focus is Entry) && !(focus is TextView)) // why is this needed?
+ bool focus_is_text_widget = focus != null && (((!) focus is Entry) || ((!) focus is TextView));
+ if (!focus_is_text_widget)
if (name != "F10") // else <Shift>F10 toggles the search_entry popup
if (search_bar.handle_event (event))
return true;
@@ -696,6 +697,9 @@ class DConfWindow : ApplicationWindow
return true;
case "c":
+ if (focus_is_text_widget)
+ return false;
+
browser_view.discard_row_popover (); // TODO avoid duplicate get_selected_row () call
string? selected_row_text = browser_view.get_copy_text ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]