This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255531 - Open file dialog - Enter key is not opening the right action
Summary: Open file dialog - Enter key is not opening the right action
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-24 07:17 UTC by vidhyadharantechdays
Modified: 2015-09-24 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Open file error , while using keyboard (60.70 KB, image/png)
2015-09-24 07:17 UTC, vidhyadharantechdays
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vidhyadharantechdays 2015-09-24 07:17:52 UTC
Created attachment 156403 [details]
Open file error , while using keyboard

Hit CTRL + I to invoke Quick search.
Type "Open file" in it.
Use arrow keys to select "Open File..." result in "Actions" section and hit enter.

Now file dialog will open, If you want to move one step above , it will open the file selected.

1. Select a file , ( in the screen shot i selected mysettings.xml)
2. Then use  tab key to navigate to (move up ) , Then press enter 
 
Our intention is to move up but the file is opened.
Comment 1 vidhyadharantechdays 2015-09-24 08:02:24 UTC
Mouse click working however enter key not working
Comment 2 Antonin Nebuzelsky 2015-09-24 09:13:09 UTC
Isnt' that actually the expected behavior? - ENTER key assigned to the default action in the UI which is OK button in this case, and SPACE key to be used for elements with tab focus?
Comment 3 Jiri Kovalsky 2015-09-24 09:21:58 UTC
This is as designed. As you can see on the screenshot, "Open" button was selected as default button in the "Open" dialog so if you press "Enter" key it will invoke its actionPerformed() method. BTW, if you want to go up when the "Go up" button has focus, hit "Space" not "Enter".
Comment 4 Theofanis Oikonomou 2015-09-24 10:04:29 UTC
Thank you both for the input. I agree with what you say. This is as designed so closing this one. Thank you for reporting.