Project

General

Profile

0001-Manually-check-to-see-if-a-search-shortcut-was-hit.patch

search shortcut patch - jesperht, 03/14/2009 01:28 PM

View differences:

src/uisupport/inputline.cpp
73 73
}
74 74

  
75 75
void InputLine::keyPressEvent(QKeyEvent * event) {
76

  
77
#ifdef HAVE_KDE
78
  if (event->matches(QKeySequence::Find))
79
  {
80
    QList<QAction *> actions =  nativeParentWidget()->actions();
81
    QAction *action;
82

  
83
    foreach(action, actions)
84
    {
85
      if (action->objectName() == "ToggleSearchBar")
86
      {
87
        action->toggle();
88
        return;
89
      }
90
    }
91
  }
92
#endif
93

  
76 94
  switch(event->key()) {
77 95
  case Qt::Key_Up:
78 96
    event->accept();
79
-