Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Keyboard arrow support for LPCalendarView #3

Open
luddep opened this issue Dec 1, 2009 · 2 comments
Open

Keyboard arrow support for LPCalendarView #3

luddep opened this issue Dec 1, 2009 · 2 comments
Labels

Comments

@luddep
Copy link
Owner

luddep commented Dec 1, 2009

Let users navigate the calendar by using the up, down, left and right arrows on their keyboards.

@Me1000
Copy link
Contributor

Me1000 commented Dec 2, 2009

one note i'd like to make is that if we had an easy way to get the selected index/indices it would be much easier to implement. The selected index doesn't always get set, nor does it automatically fix itself when the calendar is moved (back or forward 1 month)

This is what I ran into when I tried to implement it myself.

I was able to move through a single month just fine, but when I changed months the index was off (since it wasn't reset)

@luddep
Copy link
Owner Author

luddep commented Dec 5, 2009

Hm, is this really necessary? You shouldn't really mess about with indexes, only dates.

Using:

  • (void)makeSelectionWithDate:(CPDate)aStartDate end:(CPDate)anEndDate

to make a new selection, adding / subtracting a day / week to the currently selected date depending on the button clicked should be the way to do it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants