You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "eirikbakke (via GitHub)" <gi...@apache.org> on 2025/03/12 16:29:34 UTC

[PR] Tweak some keyboard behaviors in various platform components [netbeans]

eirikbakke opened a new pull request, #8323:
URL: https://github.com/apache/netbeans/pull/8323

   Here are a couple of smaller improvements, relating to keyboard shortcuts in various platform components. I have left each improvement as a separate commit since they are technically unrelated:
   
   * Make the accelerators for MoveWindowLeftAction/MoveWindowRightAction show up properly in the context menu that shows up when you right-click an editor tab.
     * <img width="340" alt="image" src="https://github.com/user-attachments/assets/e541f2e1-45e0-4f11-8d13-a79531704894" />
   * On MacOS, add Command+O as a shortcut for Open (default action) in TreeView (Projects, Files tabs etc.), like in Finder.
   * In TreeView and OutlineView, improve the position of the context menu when opened via the keyboard accelerator (Shift+F10).
     * Before:
        <img width="353" alt="image" src="https://github.com/user-attachments/assets/4550175b-d5d7-4140-9fef-ea3d4d4cf200" />
     * After:
       <img width="434" alt="image" src="https://github.com/user-attachments/assets/99cac8d6-2a7b-49bb-bf92-3e14684832d0" />
   * Make F2 to rename work on MacOS on TreeTable/TreeView/ETable. (It already works on Windows.)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-3193807956

   I meant, that I think it is good that an application tries to be consistent in itself. I.e. the application works similar on all platforms. As Command and CTRL are filling the same role on mac OS and Windows/Linux, I think the established NB internal mappings should take precedence. My understanding of
   
   > I missed the "Go to Type" mapping... in fact Command+O does map to "Go to Type" on MacOS.
   
   was that Command+O is still bound to "Go to Type", if that is not the case, I think, that that should be removed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-3190352934

   As in, merge the PR as it is, without changes?
   
   (Sorry, my confusion...)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-2968198662

   @matthiasblaesing Thanks for reviewing!
   
   I missed the "Go to Type" mapping... in fact Command+O does map to "Go to Type" on MacOS.
   
   I can remove that part of the PR. Or, I can alternatively keep the current behavior, which is that Command+O will open a file if keyboard focus is in the Projects or Files sidebars, while invoking the global shortcut (Go to Type) if keyboard focus is e.g. in the editor area.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-3211165932

   > But I can just remove the Command+O commit, so the shortcut doesn't end up have two different meanings within the same app.
   
   Yes, I think that would be better.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-3211251411

   OK, I removed the Command+O commit with no other changes, and rebased. Will wait for tests to pass, then merge. Thanks for reviewing!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-3198092941

   > was that Command+O is still bound to "Go to Type", if that is not the case, I think, that that should be removed.
   
   Command+O is still bound to "Go to Type", _except_ if the keyboard focus is in the Projects or Files sidebars. In that case it would behave like Finder on MacOS.
   
   But I can just remove the Command+O commit, so the shortcut doesn't have two different meanings within the same app.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on PR #8323:
URL: https://github.com/apache/netbeans/pull/8323#issuecomment-3189511905

   I think it would be good to keep Command+O bound as is to keep it consistent between platform. I understand, that that is the case with this PR, so I think it would be good to get this in soon.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: [PR] Tweak some keyboard behaviors in various platform components [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke merged PR #8323:
URL: https://github.com/apache/netbeans/pull/8323


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists