Defining INS (insert) shortcut in macOS

Rodrigo de Salvo Braz rodrigobraz at gmail.com
Mon May 24 18:46:14 BST 2021


Hi,

I am trying to define an Insert shortcut in the macOS:

insert_action.setShortcut(QKeySequence(Qt.Key_Insert))

Also tried:

insert_action.setShortcut(QKeySequence("Ins"))

but neither option works (nothing happens). It does work when I run it on
Windows.

I am using an external PC keyboard. I know the keyboard is generating the
right key code because when I use the EventViewer of Karabiner-Elements (a
keyboard-remapping application), I do see "key_code: insert" when I press
the key.

Thanks,

Rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210524/066683fc/attachment.htm>


More information about the PyQt mailing list