Coder Social home page Coder Social logo

Accessibility: Not able to navigate to dates again in the DatePickerController after selecting a date in the previous month about fluentui-apple HOT 4 CLOSED

microsoft avatar microsoft commented on May 21, 2024
Accessibility: Not able to navigate to dates again in the DatePickerController after selecting a date in the previous month

from fluentui-apple.

Comments (4)

Saadnajmi avatar Saadnajmi commented on May 21, 2024

@lcapkovic in case you have insights

from fluentui-apple.

lcapkovic avatar lcapkovic commented on May 21, 2024

This only repros in an NSPopover for me. When paging to any month, the new CalendarView doesn't seem to get added to the key view loop, so you can't navigate to it using tab anymore.

I found forcing a key view loop recalculation in the paging animation completion handler fixes it, but I'm not sure if that's the best solution.
The quick fix is to add self.window?.recalculateKeyViewLoop() at the end of the completionHandler in DatePickerView.swift line 343.

When presented in a popover, self.window will actually be the system-created NSPopoverWindow, not the main NSWindow where we have auto recalculating enabled. Maybe NSPopovers just don't auto recalculate the key view loop by default?

from fluentui-apple.

anandrajeswaran avatar anandrajeswaran commented on May 21, 2024

fwiw I made a quick sample app that presents an NSPopover and the NSPopoverWindow has autorecalculatesKeyViewLoop set to true by default. Certainly possible something about animations is tricking the key view loop and it's calculating the loop before the animation has committed - maybe we could contrive a scenario like that to see if it's an Apple bug?

from fluentui-apple.

chripear avatar chripear commented on May 21, 2024

Prerequisite: check "Use keyboard navigation to move focus between controls" in System Preferences > Keyboard > Shortcuts

from fluentui-apple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.