Skip to content

Commit

Permalink
Add copy action for info dock
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed May 18, 2015
1 parent 19ff0af commit fd27ae7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/roam/infodock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from string import Template
from collections import OrderedDict

from PyQt4.QtGui import ( QWidget, QIcon, QListWidgetItem, QMouseEvent, QApplication)
from PyQt4.QtGui import ( QWidget, QIcon, QListWidgetItem, QMouseEvent, QApplication, QKeySequence)

from PyQt4.QtCore import (Qt, QUrl,
QEvent, pyqtSignal
Expand Down Expand Up @@ -88,6 +88,8 @@ def __init__(self, parent):
self.layerList.currentRowChanged.connect(self.layerIndexChanged)
self.attributesView.linkClicked.connect(self.handle_link)
self.attributesView.page().setLinkDelegationPolicy(QWebPage.DelegateAllLinks)
action = self.attributesView.pageAction(QWebPage.Copy)
action.setShortcut(QKeySequence.Copy)
self.grabGesture(Qt.SwipeGesture)
self.setAttribute(Qt.WA_AcceptTouchEvents)
self.editButton.pressed.connect(self.openform)
Expand Down

0 comments on commit fd27ae7

Please sign in to comment.