Voltaire // New PgDn/Up functions with single page.
- When candidates take only one page, PgDn/PgUp functions like arrow keys.
This commit is contained in:
parent
55bfcefaa8
commit
457996a118
|
@ -259,6 +259,10 @@ public class HorizontalCandidateController: CandidateController {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pageCount == 1 {
|
||||||
|
return highlightNextCandidate()
|
||||||
|
}
|
||||||
|
|
||||||
if currentPage + 1 >= pageCount {
|
if currentPage + 1 >= pageCount {
|
||||||
currentPage = 0
|
currentPage = 0
|
||||||
} else {
|
} else {
|
||||||
|
@ -275,6 +279,10 @@ public class HorizontalCandidateController: CandidateController {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pageCount == 1 {
|
||||||
|
return highlightPreviousCandidate()
|
||||||
|
}
|
||||||
|
|
||||||
if currentPage == 0 {
|
if currentPage == 0 {
|
||||||
currentPage = pageCount - 1
|
currentPage = pageCount - 1
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -265,6 +265,10 @@ public class VerticalCandidateController: CandidateController {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pageCount == 1 {
|
||||||
|
return highlightNextCandidate()
|
||||||
|
}
|
||||||
|
|
||||||
if currentPage + 1 >= pageCount {
|
if currentPage + 1 >= pageCount {
|
||||||
currentPage = 0
|
currentPage = 0
|
||||||
} else {
|
} else {
|
||||||
|
@ -281,6 +285,10 @@ public class VerticalCandidateController: CandidateController {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pageCount == 1 {
|
||||||
|
return highlightPreviousCandidate()
|
||||||
|
}
|
||||||
|
|
||||||
if currentPage == 0 {
|
if currentPage == 0 {
|
||||||
currentPage = pageCount - 1
|
currentPage = pageCount - 1
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue