1. 28 7月, 2015 22 次提交
  2. 27 7月, 2015 4 次提交
  3. 26 7月, 2015 8 次提交
  4. 25 7月, 2015 6 次提交
    • A
      Merge pull request #283 from Hixie/focus · 9efa0fcd
      Adam Barth 提交于
      Scoped focus, so you can have a dialog with input controls and not lose your focus in the background
      9efa0fcd
    • H
      Scoped focus, so you can have a dialog with input controls and not lose your... · b9a8b7f3
      Hixie 提交于
      Scoped focus, so you can have a dialog with input controls and not lose your focus in the background.
      
      This introduces a GlobalKey registry so that you can tell when a key
      has gone away (so you can unfocus dead dialogs).
      
      Also I added an assert that you're not calling setState() during a
      build. It turns out that doing so means you have a bug, because since
      you're dirty already (you're building), you won't get rebuilt.
      
      The focus code itself is gnarly. It uses a Component and an internal
      Inherited TagNode to manage the focus state, and does crazy things
      like updating its state during build to pretend retroactively that it
      was built with some other state, once someone asks for focus the first
      time (i.e. the first time it's examined, so you can't tell that it was
      in a different state before). It does this so that it can autofocus
      controls which otherwise wouldn't be focused.
      
      This moves all the focus management into Navigator and showDialog(),
      so the complexity is all buried deep and not visible to apps,
      hopefully.
      
      To do something like two tabs that each have an Input widget that
      needs to be focused when you switch panes, you'd need to have two
      Focus objects, one in each tab, and you need to set their autofocus to
      true (maybe that should be the default?).
      b9a8b7f3
    • I
      Merge pull request #285 from Hixie/dialogs · 6af53d62
      Ian Hickson 提交于
      Fix review feedback from previous checkin.
      6af53d62
    • H
      Fix review feedback from previous checkin. · b79142a7
      Hixie 提交于
      @abarth doesn't like Futures that explicitly point out they're type-unsafe. :-P
      b79142a7
    • I
      Merge pull request #284 from Hixie/buttons · 034a3060
      Ian Hickson 提交于
      Fix the lerp the RIGHT way.
      034a3060
    • H
      Fix the lerp the RIGHT way. · 96ac817e
      Hixie 提交于
      96ac817e