1. 12 Mar, 2021 1 commit
  2. 06 Mar, 2021 1 commit
  3. 04 Mar, 2021 1 commit
  4. 18 Feb, 2021 2 commits
  5. 03 Feb, 2021 1 commit
  6. 02 Feb, 2021 1 commit
  7. 25 Jan, 2021 1 commit
  8. 21 Jan, 2021 1 commit
  9. 14 Dec, 2020 1 commit
  10. 11 Dec, 2020 1 commit
  11. 12 Nov, 2020 1 commit
    • Greg Spencer's avatar
      Revert usages of the binding's platformDispatcher to use window instead (#70319) · 86f9ab51
      Greg Spencer authored
      This reverts usages of the binding's platformDispatcher to use window again temporarily, because there isn't a TestPlatformDispatcher yet, and so some tests were failing because they mocked the TestWindow to return certain things (locales) that were returning the real values instead of the test values.
      
      Once I've created a TestPlatformDispatcher to allow fake data to be passed to it, we can go back to using the platformDispatcher in all of these places
      86f9ab51
  12. 09 Nov, 2020 1 commit
  13. 02 Nov, 2020 1 commit
  14. 29 Oct, 2020 2 commits
  15. 26 Oct, 2020 1 commit
  16. 21 Oct, 2020 1 commit
  17. 19 Oct, 2020 1 commit
    • Greg Spencer's avatar
      Mark keys that match a shortcut, but have no action defined as "not handled". (#67359) · 8c03ff8c
      Greg Spencer authored
      - - When I added notification of key events before processing them as text, it made it so that shortcut key bindings like the spacebar would prevent spaces from being inserted into text fields, which is obviously not desirable (and so that change was reverted). At the same time, we do want to make it possible to override key events so that they can do things like intercept a tab key or arrow keys that change the focus.
      
      This PR changes the behavior of the Shortcuts widget so that if it has a shortcut defined, but no action is bound to the intent, then instead of responding that the key is "handled", it responds as if nothing handled it. This allows the engine to continue to process the key as text entry.
      
      This PR includes:
      
      - Modification of the callback type for key handlers to return a KeyEventResult instead of a bool, so that we can return more information (i.e. the extra state of "stop propagation").
      - Modification of the ActionDispatcher.invokeAction contract to require that Action.isEnabled return true before calling it. It will now assert if the action isn't enabled when invokeAction is called. This is to allow optimization of the number of calls to isEnabled, since the shortcuts widget now wants to know if the action was enabled before deciding to either handle the key or to return ignored.
      - Modification to ShortcutManager.handleKeypress to return KeyEventResult.ignored for keys which don't have an enabled action associated with them.
      - Adds an attribute to DoNothingAction that allows it to mark a key as not handled, even though it does have an action associated with it. This will allow disabling of a shortcut for a subtree.
      8c03ff8c
  18. 10 Oct, 2020 1 commit
  19. 08 Oct, 2020 1 commit
  20. 07 Oct, 2020 1 commit
  21. 06 Oct, 2020 1 commit
  22. 05 Oct, 2020 1 commit
  23. 27 Sep, 2020 1 commit
  24. 17 Sep, 2020 1 commit
  25. 16 Sep, 2020 1 commit
  26. 27 Aug, 2020 2 commits
  27. 26 Aug, 2020 1 commit
  28. 14 Aug, 2020 1 commit
  29. 12 Aug, 2020 2 commits
  30. 06 Aug, 2020 2 commits
  31. 05 Aug, 2020 1 commit
  32. 28 Jul, 2020 1 commit
  33. 24 Jul, 2020 1 commit
  34. 23 Jul, 2020 2 commits