From ff763661e6e2bf75a2fe728290f0e4158bd95d14 Mon Sep 17 00:00:00 2001 From: Grigory-Rylov Date: Fri, 10 Dec 2021 09:16:25 +0300 Subject: [PATCH] v21.12.10.0 --- build.gradle | 3 ++- .../android/layoutinspector/ui/tree/TreePanel.kt | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 30b715a..84e6f6c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group 'com.github.grishberg.android' -version '21.12.09.1' +version '21.12.10.0' sourceCompatibility = 8 targetCompatibility = 8 @@ -78,5 +78,6 @@ patchPluginXml { changeNotes """ Fixed screenshot offset in landscape on phones with cutouts.
Fix propertie panel invalidation.
+ Copy id by ctrl(cmd) + c.
""" } diff --git a/src/main/kotlin/com/github/grishberg/android/layoutinspector/ui/tree/TreePanel.kt b/src/main/kotlin/com/github/grishberg/android/layoutinspector/ui/tree/TreePanel.kt index d2209ad..b2cd37a 100644 --- a/src/main/kotlin/com/github/grishberg/android/layoutinspector/ui/tree/TreePanel.kt +++ b/src/main/kotlin/com/github/grishberg/android/layoutinspector/ui/tree/TreePanel.kt @@ -34,19 +34,19 @@ class TreePanel( ) : JTree(DefaultMutableTreeNode()) { var nodeSelectedAction: OnNodeSelectedAction? = null private var selectedFromLayoutClick = false - private val copyTypeStroke = - KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().menuShortcutKeyMask, false) - - private val copyFullNameStroke = KeyStroke.getKeyStroke( + private val copyTypeStroke = KeyStroke.getKeyStroke( KeyEvent.VK_C, - Toolkit.getDefaultToolkit().menuShortcutKeyMask + ActionEvent.SHIFT_MASK, + Toolkit.getDefaultToolkit().menuShortcutKeyMask + ActionEvent.ALT_MASK, false ) - private val copyIdStroke = KeyStroke.getKeyStroke( + + private val copyFullNameStroke = KeyStroke.getKeyStroke( KeyEvent.VK_C, - Toolkit.getDefaultToolkit().menuShortcutKeyMask + ActionEvent.ALT_MASK, + Toolkit.getDefaultToolkit().menuShortcutKeyMask + ActionEvent.SHIFT_MASK, false ) + private val copyIdStroke = + KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit.getDefaultToolkit().menuShortcutKeyMask, false) private val foundItems = mutableListOf() private var viewNodeRenderer = NodeViewTreeCellRenderer(foundItems, theme, bookmarks)