1. 30 Mar, 2016 1 commit
    • Robert Knight's avatar
      Preserve selection when switching accounts · 347dcefa
      Robert Knight authored
      When visiting a direct-linked annotation (ie. #annotations:<id> is
      present in the URL) we want to preserve the selection when the user
      signs in, whether the annotation was private or in a group, in which
      case they will need to sign in to see it, or public, in which case they
      might need to sign in to reply.
      
      Previously public direct-linked annotations became deselected when
      signing in because they were unloaded when switching accounts, and this
      fired the same ANNOTATION_DELETED event as when an annotation is
      removed, which results in the annotation being removed from the
      selection.
      
      This commit enables the selection to be preserved by introducing a
      different event within the app when annotations are unloaded vs.
      deleted. When an annotation is unloaded, it is not removed from the
      selection.
      347dcefa
  2. 29 Mar, 2016 2 commits
  3. 24 Mar, 2016 6 commits
  4. 23 Mar, 2016 5 commits
  5. 22 Mar, 2016 6 commits
  6. 21 Mar, 2016 15 commits
  7. 19 Mar, 2016 2 commits
    • Robert Knight's avatar
      Ensure cursor is positioned after block prefix when creating lists · 1f8ac8a9
      Robert Knight authored
      Improve behavior when the user clicks the toolbar buttons to create a
      list or quote and the cursor is positioned at the start of the line with
      no selection. In this case, after the command is applied, the cursor
      should be positioned ready for the user to start typing the quote or
      list.
      
      When the selection is empty and text is inserted at the cursor position,
      it is ambiguous whether the selection is 'before' or 'after' the
      replaced text. The fix here is to treat the selection as being 'before'
      the replaced text.
      
      Fixes #3091
      1f8ac8a9
    • Robert Knight's avatar
      c293c687
  8. 18 Mar, 2016 3 commits