~phablet-team/webbrowser-app/trunk

« back to all changes in this revision

Viewing changes to src/app/webbrowser/HistoryViewWide.qml

  • Committer: Bileto Bot
  • Author(s): Olivier Tilloy
  • Date: 2016-06-10 07:54:12 UTC
  • mfrom: (1471.3.1 webbrowser-app)
  • Revision ID: ci-train-bot@canonical.com-20160610075412-pd0tk3hopeb57t8o
The UITK now handles Enter/Return/Space key presses to activate list items, (LP: #1581027, #1589424)

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
 
302
302
                anchors.fill: parent
303
303
 
304
 
                Keys.onReturnPressed: historyEntrySelected()
305
 
                Keys.onEnterPressed: historyEntrySelected()
306
 
 
307
304
                model: SortFilterModel {
308
305
                    id: historyLastVisitDateModel
309
306
                    readonly property date lastVisitDate: lastVisitDateListView.currentItem ? lastVisitDateListView.currentItem.lastVisitDate : ""
330
327
                    }
331
328
                }
332
329
 
333
 
                function historyEntrySelected() {
334
 
                    if (urlsListView.ViewItems.selectMode) {
335
 
                        currentItem.selected = !currentItem.selected
336
 
                    } else {
337
 
                        historyViewWide.historyEntryClicked(currentItem.siteUrl)
338
 
                    }
339
 
                }
340
 
 
341
330
                // Only use sections for "All History" history list
342
331
                section.property: historyLastVisitDateModel.lastVisitDate.isValid() ? "" : "lastVisitDate"
343
332
                section.delegate: HistorySectionDelegate {