~osomon/unity-2d/fix-shortcut-text-modulo-10

« back to all changes in this revision

Viewing changes to launcher/LauncherList.qml

  • Committer: Olivier Tilloy
  • Date: 2011-04-29 16:11:04 UTC
  • Revision ID: olivier.tilloy@canonical.com-20110429161104-7762fvvz5b7xjhwg
[launcher] Fix the last shortcut text to display "0", not "10", to be consistent with a typical keyboard layout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
 
101
101
        shortcutVisible: item.toString().indexOf("LauncherApplication") == 0 &&
102
102
                         index <= 9 && launcherView.superKeyHeld
103
 
        shortcutText: index + 1
 
103
        shortcutText: (index + 1) % 10
104
104
 
105
105
        isBeingDragged: (reorder.draggedTileId != "") && (reorder.draggedTileId == desktopFile)
106
106
        dragPosition: reorder.listCoordinates.y - list.contentY