@@ -44,9 +44,13 @@ Rectangle {
47− function altTabNext() {
47+ function altTabNext(isAutoRepeat) {
48 if (root.altTabPressed) {
48 if (root.altTabPressed) {
49 print("should tab next")
49 print("should tab next")
50+ if (isAutoRepeat && appRepeater.highlightedIndex >= ApplicationManager.count -1) {
51+ return; // AutoRepeat is not allowed to wrap around
50 appRepeater.highlightedIndex = (appRepeater.highlightedIndex + 1) % ApplicationManager.count;
54 appRepeater.highlightedIndex = (appRepeater.highlightedIndex + 1) % ApplicationManager.count;
51 var newContentX = ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 5, appRepeater.highlightedIndex - 3));
55 var newContentX = ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 5, appRepeater.highlightedIndex - 3));
52 if (spreadFlickable.contentX < newContentX || appRepeater.highlightedIndex == 0) {
56 if (spreadFlickable.contentX < newContentX || appRepeater.highlightedIndex == 0) {
@@ -55,9 +59,13 @@ Rectangle {
58− function altTabPrevious() {
62+ function altTabPrevious(isAutoRepeat) {
59 print("alttabprevious pressed")
63 print("alttabprevious pressed")
60 if (root.altTabPressed) {
64 if (root.altTabPressed) {
65+ if (isAutoRepeat && appRepeater.highlightedIndex == 0) {
66+ return; // AutoRepeat is not allowed to wrap around
61 var newIndex = appRepeater.highlightedIndex - 1 >= 0 ? appRepeater.highlightedIndex - 1 : ApplicationManager.count - 1;
69 var newIndex = appRepeater.highlightedIndex - 1 >= 0 ? appRepeater.highlightedIndex - 1 : ApplicationManager.count - 1;
62 appRepeater.highlightedIndex = newIndex;
70 appRepeater.highlightedIndex = newIndex;
63 var newContentX = ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 5, appRepeater.highlightedIndex - 1));
71 var newContentX = ((spreadFlickable.contentWidth) / (ApplicationManager.count + 1)) * Math.max(0, Math.min(ApplicationManager.count - 5, appRepeater.highlightedIndex - 1));