meven added a comment.
In D25420#571548 <https://phabricator.kde.org/D25420#571548>, @ahmadsamir wrote: > In D25420#571483 <https://phabricator.kde.org/D25420#571483>, @dfaure wrote: > > > So after a double-click, activated() is emitted, the boolean is set, and much later some Key_Enter event that should have been emitted, gets eaten? > > > > Wouldn't an event filter on the QAbstractItemView solve your problem? Then you can catch the Return key before QAbstractItemView sees it, and call _k_slotActivated yourself, and decide whether to emit returnPressed as well? > > > > I hope this makes sense, if not I can dig further later, I'm in a bit of a rush right now. > > > > I'm actually wondering *when* we want KDirOperator to emit returnPressed at all. When the current index isn't a directory, I assume? > When the view has nothing selected, in fact. > And, of course, more unit tests like the one in D19824 <https://phabricator.kde.org/D19824>... :D This was not an automated test. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25420 To: meven, #frameworks, ngraham, elvisangelaccio, dfaure Cc: ahmadsamir, feverfew, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns