Shortcut key

18 views
Skip to first unread message

daneshsaz

unread,
Feb 20, 2016, 5:38:25 AM2/20/16
to Project Camelot
Hello all

Is it possible to add a shortcut key to editor (textlineedit)?

Thanks

Erik Janssens

unread,
Feb 22, 2016, 3:26:46 PM2/22/16
to project...@googlegroups.com
yes, you can add a field_attribute actions to a text field

this action can have a shortcut

class MyAction(Action):

verbose_name = 'Do something'
shortcut = QtGui.QKeySequence.Something

class Admin(EntityAdmin):
field_attributes = {
'my_field': {'actions': [MyAction()]}

daneshsaz

unread,
Feb 23, 2016, 2:59:50 AM2/23/16
to Project Camelot
Very thanks
Reply all
Reply to author
Forward
0 new messages