Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Okular Okular
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GraphicsGraphics
  • OkularOkular
  • Merge requests
  • !69

Enable closing a tab by middle click

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Bob Bai requested to merge bdbai/okular:master into master Dec 03, 2019
  • Overview 17
  • Commits 7
  • Pipelines 18
  • Changes 4

In some applications like Chromium or Dolphin, it is possible to use middle click to close a tab. This patch brings the similar user experience to Okular.

Some discussions at https://phabricator.kde.org/D25484 .

This MR adds:

  • mouse middle button event handler for closing a tab
  • an undo close tab action

Test plan:

  1. Compile and install.
  2. Enable Open new files in tabs.
  3. Open two documents. They should be opened in two tabs in the same window.
  4. Middle click one of the tabs. It should be closed.
  5. Choose File-Undo close tab. The closed tab should be reopened.
  6. Middle click one of the tabs. It should be closed.
  7. Press Ctrl+Shift+T. The closed tab should be reopened.
Edited Dec 03, 2019 by Bob Bai
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master