Bug 125687 - Keyboard usability issues in "Cover Found" menu
Summary: Keyboard usability issues in "Cover Found" menu
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 1.4-beta3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
: 125684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-16 20:37 UTC by David Comeau
Modified: 2006-06-20 16:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch to fix the keyboard shortcuts for the New Search and Next Cover buttons (25.53 KB, patch)
2006-05-05 14:56 UTC, Joseph Tate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Comeau 2006-04-16 20:37:42 UTC
Version:           1.4-beta3 (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc version 4.0.3 (Debian 4.0.3-1)  
OS:                Linux

Installed 1.4-beta3 and found that the same bug that I submitted toward 1.3.8 (#125684) exists in the beta tree for 1.4

Within the "Cover Found" screen, the keyboard shortcuts for "New _Search" and "Next _Cover" conflict with the shortcuts for "_Save" and "_Cancel". Also, when the "Cover Found" screen appears, it does not have application modal (main amaroK menu retains modal until "Cover Found" screen is given focus).
Comment 1 David Comeau 2006-04-17 04:27:09 UTC
*coughs* Got a bit overzealous.  Keyboard shortcuts work correctly in 1.4-beta3, but modal focus is still wrong.
Comment 2 Alexandre Oliveira 2006-04-20 04:32:39 UTC
*** Bug 125684 has been marked as a duplicate of this bug. ***
Comment 3 Joseph Tate 2006-05-05 14:56:53 UTC
Created attachment 15925 [details]
Patch to fix the keyboard shortcuts for the New Search and Next Cover buttons

This patch fixes the keyboard nav shortcuts on the Fetch Cover dialog.	Please
note that this should not be subject to the string freeze because the only
change to the string is which letter is the hotkey.  This along with the fact
that each language picks its own shortcut key, no retranslation should be
necessary.  If that is not possible, perhaps we could create a en_US po file to
translate "Next &Cover" to "&Next Cover" and "New &Search" to "Ne&w Search".
Comment 4 Joseph Tate 2006-05-05 16:24:17 UTC
Some additional description:

When the "Cover Found" dialog pops up, it does not have focus, but in my version (compiled from source) it is application modal.  Before focus is granted, the buttons are as follows, "&Save", "New &Search..", "Next &Cover" and "&Cancel", after clicking, it becomes "&Save", "&New Search..", "N&ext Cover" and "&Cancel". Searching through the code didn't show those strings anywhere.

Also, upon clicking "Next Cover" in whichever format, the modal dialog loses focus, probably because it's destroyed and then recreated.
Comment 5 T.R.Shashwath 2006-06-20 16:24:07 UTC
Exists in yesterday's SVN also..
Comment 6 Seb Ruiz 2006-06-20 16:48:38 UTC
We don't normally accept patches which haven't been created properly. It's customary (sorry, mandatory) to not patch the translated files. (*.po)
Comment 7 Seb Ruiz 2006-06-20 16:53:08 UTC
SVN commit 553257 by seb:

Don't set keyboard shortcuts for coverfetcher dialog to be conflicting.
BUG: 125687


 M  +2 -2      coverfetcher.cpp  
 M  +4 -2      covermanager.cpp  


--- trunk/extragear/multimedia/amarok/src/coverfetcher.cpp #553256:553257
@@ -553,8 +553,8 @@
             QLabel      *labelName = new QLabel( this );
             QHBox       *buttons   = new QHBox( this );
             KPushButton *save      = new KPushButton( KStdGuiItem::save(), buttons );
-            KPushButton *newsearch = new KPushButton( i18n( "New &Search..." ), buttons, "NewSearch" );
-            KPushButton *nextcover = new KPushButton( i18n( "Next &Cover" ), buttons, "NextCover" );
+            KPushButton *newsearch = new KPushButton( i18n( "Ne&w Search..." ), buttons, "NewSearch" );
+            KPushButton *nextcover = new KPushButton( i18n( "&Next Cover" ), buttons, "NextCover" );
             KPushButton *cancel    = new KPushButton( KStdGuiItem::cancel(), buttons );
 
             labelPix ->setAlignment( Qt::AlignHCenter );
--- trunk/extragear/multimedia/amarok/src/covermanager.cpp #553256:553257
@@ -543,14 +543,16 @@
 
     m_coverView->selectAll( false);
     QIconViewItem *item = m_coverView->firstItem();
-    while ( item ) {
+    while ( item ) 
+    {
         QIconViewItem *tmp = item->nextItem();
         m_coverView->takeItem( item );
         item = tmp;
     }
 
     m_coverView->setAutoArrange( false );
-    for( QIconViewItem *item = m_coverItems.first(); item; item = m_coverItems.next() ) {
+    for( QIconViewItem *item = m_coverItems.first(); item; item = m_coverItems.next() ) 
+    {
         CoverViewItem *coverItem = static_cast<CoverViewItem*>(item);
         if( coverItem->album().contains( m_filter, false ) || coverItem->artist().contains( m_filter, false ) )
             m_coverView->insertItem( item, m_coverView->lastItem() );