Keyboard Support Enhancements in Flutter Event Calendar | Syncfusion Blogs
Detailed Blog page Skeleton loader
Keyboard Support Enhancements in Flutter Event Calendar: 2021 Volume 2

While working with a calendar widget on desktop and web platforms, one of the most prevalent requirements is the ability to use the application with only keyboard interaction. In the 2021 Volume 2 release, we have fixed the bugs and enhanced the keyboard interaction support in our Syncfusion Flutter event Calendar widget. Now, you can enjoy all the common keyboard interaction functionalities and use the app without the need for a mouse.

In this blog post, we will see all the keyboard interaction supports in the Flutter event Calendar widget and how to use them.

View switching

You can switch to different views in our Flutter Calendar through keyboard interactions without using the mouse. When the Calendar is not in focus mode, use the tab key to focus on the Calendar. Then, use the alt + Numeric keys [1 to 9] to change the calendar view. You can also restrict this keyboard view switching using the allowedViews property in the Calendar.

KeyView
Alt + 1Day
Alt + 2Week
Alt + 3Workweek
Alt + 4Month
Alt + 5Timeline day
Alt + 6Timeline week
Alt + 7Timeline workweek
Alt + 8Timeline month
Alt + 9Schedule
View Switching Using Keyboard Interaction in Flutter Event Calendar
View Switching Using Keyboard Interaction in Flutter Event Calendar

View navigation

Use the following key sets to easily navigate to the previous or next view without the need for a mouse.

KeyAction
CTRL + left arrow (<-)To navigate to the previous view.
CTRL + right arrow (->)To navigate to the next view.
Page up/downVertically scrolls through the timeslot views  (Day, week, work week).
View Navigation Using Keyboard Interaction in Flutter Event Calendar
View Navigation Using Keyboard Interaction in Flutter Event Calendar

Calendar cell and appointment selection

We can select the Calendar cells and appointments using the following key sets.

KeyAction
Right arrowMove selection to the same time slot on the next day.
Left arrowMove selection to the same time slot on the previous day.
Up arrowMove selection to the next calendar cell directly above the currently selected time slot.
Down arrowMove selection to the next calendar cell directly below the currently selected time slot.
TabMove selection to the next appointment from the currently selected appointment. If no appointment is selected, then use the tab traversal and move the focus to the next clickable item.
Shift + TabMove selection to the previous appointment from the currently selected appointment. If no appointment is selected, then use the tab traversal and move the focus to the next clickable item.
EnterFire the on-tap callback with the selected calendar cell and appointment.
Flutter Event Calendar's Cell and Appointment Selection Using Keyboard Interaction
Flutter Event Calendar’s Cell and Appointment Selection Using Keyboard Interaction

Points to be noted

  • If you tap on an appointment and press any arrow key, then the next available calendar cell will be selected.
  • If you select a cell and press Tab or Shift + Tab, then the next available appointment will be selected in the Flutter event calendar.

Conclusion

Thanks for reading! In this blog post, we’ve seen the details of all the available keyboard interaction features in the Flutter event calendar and their usage. With these features, you can use the Calendar through a keyboard without the need for a mouse. Try out the keys mentioned in this blog post and enjoy hassle-free interactions!

Also, try out our Flutter event Calendar projects and online demos and share your feedback or questions in the comments section of this blog post.

For existing customers, the new version is available for download from the License and Downloads page. If you are not yet a Syncfusion customer, you can try our 30-day free trial to check out our available features.

You can also contact us through our support forumDirect-Trac, or feedback portal. We are here to help you succeed!

Related blogs

Be the first to get updates

Nijamudeen

Meet the Author

Nijamudeen

Nijamudeen is the product manager for the Syncfusion Xamarin and Flutter platforms, who build highly scalable custom controls that drive Syncfusion's product vision forward.