Bug 216157

Summary: Pressing the "Escape" key in anaconda causes the action associated with the default button to be executed
Product: Red Hat Enterprise Linux 5 Reporter: Pavel Tsekov <ptsekov>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED DEFERRED QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-05 20:50:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Tsekov 2006-11-17 15:35:27 UTC
Description of problem:

If I press Esc in the textmode installer, it behaves like the 
default button was pressed.

How reproducible:

Each time.

Steps to Reproduce:

1. At the boot prompt type "linux text"

2. When the text mode installer shows up press Esc
  
Actual results:

The installer executes the action associated with the default button i.e.
in most cases it validates the data entered (if any) and moves to the next 
screen.

Expected results:

I guess the default action for Esc should be "Back".

Comment 1 Jeremy Katz 2006-11-28 17:49:21 UTC
On which screen in particular?

Comment 2 Pavel Tsekov 2006-11-28 20:32:23 UTC
As I said above:

After the kernel finishes loading, an the first text installer screen appears. 
In fact it is not anaconda itself but some pre-anaconda script/app.

Comment 3 David Cantrell 2006-12-14 18:58:34 UTC
This looks like a problem with newt.  Line 474 in form.c in the newt source does
this:

/* TEST */ newtFormAddHotKey (co, NEWT_KEY_ESCAPE);

Reading the function, it looks like this line should just be removed. 
Reassigning this bug to newt.

Comment 4 Miroslav Lichvar 2007-01-30 15:22:38 UTC
F12 key will cause the same problem. Handling return values from newt functions
in anaconda looks like a better solution than disabling all hot keys.

Comment 5 David Cantrell 2007-01-30 19:56:46 UTC
Well, F12 is the key we mention at the bottom of the screen in loader as:

<F12> next screen

So that one should cause the same thing.  Since the line above had the comment
TEST next to it, it looked as something that wasn't supposed to be present in newt.

We do check the return values of newt functions when there is one. 
newtRunForm() and newtWinMessage() have void return values.  We use newtForms
for a lot of things.

Comment 6 Miroslav Lichvar 2007-01-31 15:00:14 UTC
Ok, fixed in newt-0.52.5-1.fc7.

Comment 7 RHEL Program Management 2007-06-05 20:50:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Since this
bugzilla is in a component that is not approved for the current
release, it has been closed with resolution deferred.  You may
reopen this bugzilla for consideration in the next release.