From aedb1f362c4f48b57201e914f56c6143c3eae5f4 Mon Sep 17 00:00:00 2001 From: Philipp Otto Date: Thu, 25 Oct 2018 17:50:45 +0200 Subject: [PATCH 1/2] only support shortcut for tree search and not for comment search --- .../oxalis/view/right-menu/search_popover.js | 17 ++++++++++------- .../oxalis/view/right-menu/trees_tab_view.js | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/oxalis/view/right-menu/search_popover.js b/app/assets/javascripts/oxalis/view/right-menu/search_popover.js index ff713380ff..d8e43f811f 100644 --- a/app/assets/javascripts/oxalis/view/right-menu/search_popover.js +++ b/app/assets/javascripts/oxalis/view/right-menu/search_popover.js @@ -13,6 +13,7 @@ type Props = { idKey: $Keys, onSelect: number => void, children: *, + provideShortcut?: boolean, }; type State = { @@ -35,13 +36,15 @@ export default class SearchPopover extends React.PureComponent - { - this.setState({ isVisible: true }); - }} - /> + {this.props.provideShortcut ? ( + { + this.setState({ isVisible: true }); + }} + /> + ) : null} { idKey="treeId" searchKey="name" maxSearchResults={10} + provideShortcut > From 927c0243db224af894a11598f5ab70df84ef72be Mon Sep 17 00:00:00 2001 From: Philipp Otto Date: Thu, 25 Oct 2018 17:54:53 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 459f078986..ecc2b29b37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.md). - Fixed a layouting issue which occurred on a fresh page load when the layout was scaled to be bigger than the available space. [#3256](https://github.com/scalableminds/webknossos/pull/3256) - Fixed overlap in comment tab for long tree names or comments. [#3272](https://github.com/scalableminds/webknossos/pull/3272) +- Fixed that CTRL + Shift + F opens two search popovers in the tracing view. Instead, the shortcut will only open the tree search now. [#3407](https://github.com/scalableminds/webknossos/pull/3407) - Fixed a bug which caused data to not be displayed correctly if adjacent data does not exist.[#3270](https://github.com/scalableminds/webknossos/pull/3270) - Fixed a bug which caused initial rendering to sometimes miss some buckets. [#3262](https://github.com/scalableminds/webknossos/pull/3262) - Fixed a bug which caused the save-button to never show success for volume tracings. [#3267](https://github.com/scalableminds/webknossos/pull/3267)