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
|
||||
}
|
||||
|
||||
if pageCount == 1 {
|
||||
return highlightNextCandidate()
|
||||
}
|
||||
|
||||
if currentPage + 1 >= pageCount {
|
||||
currentPage = 0
|
||||
} else {
|
||||
|
@ -275,6 +279,10 @@ public class HorizontalCandidateController: CandidateController {
|
|||
return false
|
||||
}
|
||||
|
||||
if pageCount == 1 {
|
||||
return highlightPreviousCandidate()
|
||||
}
|
||||
|
||||
if currentPage == 0 {
|
||||
currentPage = pageCount - 1
|
||||
} else {
|
||||
|
|
|
@ -265,6 +265,10 @@ public class VerticalCandidateController: CandidateController {
|
|||
return false
|
||||
}
|
||||
|
||||
if pageCount == 1 {
|
||||
return highlightNextCandidate()
|
||||
}
|
||||
|
||||
if currentPage + 1 >= pageCount {
|
||||
currentPage = 0
|
||||
} else {
|
||||
|
@ -281,6 +285,10 @@ public class VerticalCandidateController: CandidateController {
|
|||
return false
|
||||
}
|
||||
|
||||
if pageCount == 1 {
|
||||
return highlightPreviousCandidate()
|
||||
}
|
||||
|
||||
if currentPage == 0 {
|
||||
currentPage = pageCount - 1
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue