Skip to content

Commit

Permalink
Re-enable search inversion just have the keypresses handled by the fo…
Browse files Browse the repository at this point in the history
…cused widget first. Refs #9858
  • Loading branch information
stuartm committed Jun 21, 2011
1 parent bcadb9f commit 63702bf
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -3222,20 +3222,23 @@ bool SearchButtonListDialog::Create(void)

bool SearchButtonListDialog::keyPressEvent(QKeyEvent *event)
{
if (GetFocusWidget() && GetFocusWidget()->keyPressEvent(event))
return true;

QStringList actions;
bool handled = GetMythMainWindow()->TranslateKeyPress("Global", event, actions, false);

for (int i = 0; i < actions.size() && !handled; i++)
{
QString action = actions[i];
handled = true;

// if (action == "0")
// {
// m_startsWith = !m_startsWith;
// searchChanged();
// }
// else
if (action == "0")
{
m_startsWith = !m_startsWith;
searchChanged();
}
else
handled = false;
}

Expand Down

0 comments on commit 63702bf

Please sign in to comment.