Bug 53228 - Accelerator key C used for both Close and Child mode
Summary: Accelerator key C used for both Close and Child mode
Status: RESOLVED FIXED
Alias: None
Product: khangman
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Anne-Marie Mahfouf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 09:56 UTC by Peter Henderson
Modified: 2003-02-18 03:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Henderson 2003-01-21 09:56:07 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    RedHat RPMs

Steps to reproduce:
1. Press Alt+C

Expected results:
KHangMan closes

Actual results:
Close button is highlighted

Cause:
In the file mainw.ui (http://lxr.kde.org/source/kdeedu/khangman/khangman/mainw.ui#L97), the keyboard accelerator Alt-C is assigned to both Close and Child mode (the button captions are &Close and &Child mode). This causes Alt-C to toggle focus between the two buttons instead of activating either one.

One of these should be changed so the command is activated instead of the button being highlighted. infodlg.ui refers to Alt+C closing the game (http://lxr.kde.org/source/kdeedu/khangman/khangman/infodlg.ui#L80), so either Child mode should be reassigned to something other than C, or else Close should be reassigned and the Info dialog changed as well. Usually Q is associated with exiting a program, so it might make more sense to change the Close button into a Quit button to avoid the conflicting accelerator keys.
Comment 1 Anne-Marie Mahfouf 2003-02-18 03:23:05 UTC
Fixed 17th February 2003 by changing Close button to Quit button thus accel key 
is Alt+Q. There is now only one accel key set to Alt+C.
Info dialog has been changed accordingly and had layout to allow proper 
resizing when translated.