update-manager battery warning has two buttons with the same accelerator

Bug #425817 reported by Paul Natsuo Kishimoto
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

Since https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/377697, update-manager displays a dialog informing the user that the computer is running on battery power before proceeding with updates.

Expected: the 'Continue' and 'Close' buttons in this dialog have unique accelerator keys.

Observed: both buttons have 'C' as the accelerator key.

$ lsb_release -rd && sudo apt-cache policy update-manager
Description: Ubuntu karmic (development branch)
Release: 9.10
update-manager:
  Installed: 1:0.124.11
  Candidate: 1:0.124.11
  Version table:
 *** 1:0.124.11 0
        500 http://ca.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

The key for the "Continue" button should be Enter, and the key for the "Cancel" button should be Esc. Neither button should have any other key equivalents.

Revision history for this message
Matt Drake (mattduckman) wrote :

Taking away the accelerators or making them unique, either way I think it should changed.

By the way, right now the enter key is equivalent to 'Close' and the esc key is equivalent to 'Continue', which is opposite to the behavior that Matthew described.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

While people are looking at this, the behaviour in the dialog box that warns about Partial Upgrades is also odd. In that dialog, there are two buttons: "_Partial Upgrade" and "_Cancel". If you highlight the former and press Enter, the Cancel action is invoked.

Revision history for this message
Michael Vogt (mvo) wrote :

I fixed the behavior for ESC and fixed the duplicated accelerator labels.

I did not remove the accelerator labels yet because:
- every other dialog that uses a stock "gtk-close" button has a accelerator
- if continue has no accelerator there is no way to quickly trigger it (with a single keystroke). the user would have to use tab->enter
- if we make the default focus of the dialog continue (so that it is triggered on ENTER) instead of "close" that contradicts the intention of the dialog (that the user should explicitely say that he want to continue)
- if we focus "close" but trigger a "continue" on ENTER than that would behave differently from every other dialog in gnome

I attach a small test-code snippest do demonstrate the ENTER default behavior.

(I do not disagree with the change itself, but I think if we want it, we should make it consistent).

Revision history for this message
Michael Vogt (mvo) wrote :

I fixed the behavior for ESC and fixed the duplicated accelerator labels.

I did not remove the accelerator labels yet because:
- every other dialog that uses a stock "gtk-close" button has a accelerator
- if continue has no accelerator there is no way to quickly trigger it (with a single keystroke). the user would have to use tab->enter
- if we make the default focus of the dialog continue (so that it is triggered on ENTER) instead of "close" that contradicts the intention of the dialog (that the user should explicitely say that he want to continue)
- if we focus "close" but trigger a "continue" on ENTER than that would behave differently from every other dialog in gnome

I attach a small test-code snippest do demonstrate the ENTER default behavior.

(I do not disagree with the change itself, but I think if we want it, we should make it consistent).

Changed in update-manager (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.125.2

---------------
update-manager (1:0.125.2) karmic; urgency=low

  [ Michael Vogt ]
  * DistUpgrade/DistUpgradeCache.py:
    - add check for 5Mb safety buffer in /tmp, this ensures that
      dkms can run and ensure we do not run when /tmp is mounted
      in overflow mode (LP: #427035)
  * data/glade/UpdateManager.ui:
    - remove dialog title for the battery warning and fix button
      order (thanks to Matthew Paul Thomas)
  * data/glade/UpdateManager.ui:
    - fix duplicated accelerator keys (LP: #425817)
  * UpdateManager/UpdateManager.py:
    - close app when ESC is pressed in the battery warning
  * UpdateManager/UpdateManager.py:
    - ensure that the changelog always matches the currently selected
      pkg by fixing race during download (LP: #424918)
  * UpdateManager/backend/InstallBackendAptdaemon.py:
    - do not hang when cancel is clicked (LP: #426718)
  * add sed patch facility and patch the gnome debconf frontend
    before the upgrade starts so that it can not crash when
    perl moves from 5.8.0 to 5.10.0 (LP: #387112)
  * data/glade/UpdateManager.ui:
    - use bigger default width (LP: #418201)

  [ Brian Murray ]
  * typo fixes (thanks to Brian Murray, LP: #423409)

 -- Michael Vogt <email address hidden> Tue, 15 Sep 2009 10:50:24 +0200

Changed in update-manager (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.