Bug 574583 - New Project Wizard skips one page when navigated with the keyboard
Summary: New Project Wizard skips one page when navigated with the keyboard
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.20   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 04:52 EDT by Dieter Mai CLA
Modified: 2021-07-01 05:02 EDT (History)
1 user (show)

See Also:


Attachments
Wizard issue (139.70 KB, image/png)
2021-07-01 04:52 EDT, Dieter Mai CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter Mai CLA 2021-07-01 04:52:28 EDT
Created attachment 286708 [details]
Wizard issue

The new Project Wizard skips one page when navigated via the keyboard.

I was able to reproduce this with 
- OS: Ubuntu 20 and Ubuntu 21 but not with windows 10
- Eclipse 2021-03 and 2021-06

How to reproduce:
_Preconditions_
[P1] Eclipse is open

_Actions_
[A1] Click on File > New > Projects...
[A2] Use the Keyboard (tab, arrow keys, Enter key) to select a Project type. A good candidate for this 'Plug-in Project' or 'Maven Project'
[A3] Select the '< Back' key

_Observed_
[O1] The 'New Project' Wizard is displayed
[O2] [NOK] The second page of the respective wizard is displayed
[O3] The first page of the respective wizard is displayed

Note: This issue occurs for every wizard with more then one page, but for some wizards the issue looks different. E.g. when selecting 'Java Project' the first page is displayed along with an error message. I assume the Wizard for the a new java project checks if the Project name is valid and prevent the next page from displaying when it is not.


After analyzing this issue, it seems to me the cause is that the enter key event is handled twice. Once by the list in the 'New Project' page [1] one once by the default button of the shell [2]

[1] Line 334 in org.eclipse.ui.internal.dialogs.NewWizardNewPage
[2] Line 1343 in org.eclipse.jface.wizard.WizardDialog