Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !10053

Glyphicons copy to clipboard shortcut

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/davegaeddert/glyphicons-clipboard into master Aug 23, 2013
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 4

Created by: davegaeddert

This is a relatively simple feature addition for the ability to hover over a glyphicon in the docs and press Cmd/Ctrl+C to automatically copy the <span> element with the appropriate classes for the icon. It also includes a slightly delayed tooltip to let the user know about the action.

Based heavily on the idea from Trello using only JS (no flash) -- uses a hidden textarea to temporarily copy the contents into and select before the user hits C.

Tested in Chrome 28 for Mac & Windows, Safari 6.0.5 for Mac

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/davegaeddert/glyphicons-clipboard