-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ESC key selects parent of selected node #389
Conversation
@abhinayagarwal any news on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks. Please see below
@@ -85,6 +88,22 @@ protected void initializePanel() { | |||
// We do not use the platform editing feature because | |||
// editing is started on selection + simple click instead of double click | |||
treeView.setEditable(false); | |||
|
|||
treeView.setOnKeyPressed(event -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason for why this is setOnKeyPressed()
and the other change is addEventFilter()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, sorry, I did not receive any mail about your comment. Let me check in the next days.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlmasB changed to always call setOnKerPressed()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this looks okay for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update first license header line in in ContentPanelController.java
from * Copyright (c) 2016, 2018 Gluon and/or its affiliates.
to * Copyright (c) 2016, 2022 Gluon and/or its affiliates.
.
Also please add the line * Copyright (c) 2022 Gluon and/or its affiliates.
as new first line in HierarchyTreeViewController.java
.
@@ -85,6 +88,22 @@ protected void initializePanel() { | |||
// We do not use the platform editing feature because | |||
// editing is started on selection + simple click instead of double click | |||
treeView.setEditable(false); | |||
|
|||
treeView.setOnKeyPressed(event -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this looks okay for me.
Hi @luca-domenichini , |
@Oliver-Loeffler done |
This PR implements #388.
Pressing ESC key selects the parent of the currently selected node.