1. 02 Jul, 2018 1 commit
    • Daniel García Moreno's avatar
      Escape management in only one method · f74fbb57
      Daniel García Moreno authored
      I've moved the leave full screen on escape from the media_viewer to the
      existing escape method in state.rs to have all the behaviour in only one
      place.
      
      Doing this I've also added the functionality to go back to the chat when
      we're in the MediaViewer and to do this I've to modify a little the
      autocomplete, to avoid the close when we press escape on the
      autocomplete popover.
      
      I've also changed the key management on key press instead of key release
      because the keypress is grabbed by child windows or popovers and the
      release isn't.
      
      Close #277
      f74fbb57
  2. 03 May, 2018 1 commit
  3. 27 Apr, 2018 2 commits
    • Daniel García Moreno's avatar
      autocomplete: Code cleanup, remove all unwraps · 0c8ffc76
      Daniel García Moreno authored
      I've removed all unwraps that can be removed, managing the result of all
      of that with the ?  operator and using the std::option::Option type.
      
      This way we'll avoid crashes, because an unmanaged unwrap can cause a
      crash so we need to check this always.
      
      I've also removed the unicode-segmentation depencency. We can use the
      .chars iterators and it seems to work correctly.
      0c8ffc76
    • Daniel García Moreno's avatar
      Fix autocomplete crash with unicode usernames · 586e401f
      Daniel García Moreno authored
      Sometimes, when we try to autocomplete with usernames with unicodes, the
      count of chars is different from the count of graphemes so we were
      trying to split the list of graphemes at a out of bound position.
      
      Making the check first and returning if it's not possible fixs the
      problem.
      
      Fix #202
      586e401f
  4. 12 Apr, 2018 2 commits