Defining INS (insert) shortcut in macOS
Maurizio Berti
maurizio.berti at gmail.com
Tue May 25 00:41:13 BST 2021
That shortcut is very generic and can be potentially "eaten" by widgets
that accept text input.
Does any other modifier-based shortcut work (excluding standard text
shortcuts, like ctrl-x or ctrl-a)?
Can you provide a minimal reproducible example?
Il giorno lun 24 mag 2021 alle ore 19:46 Rodrigo de Salvo Braz <
rodrigobraz at gmail.com> ha scritto:
> 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
>
--
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210525/4a3db7fa/attachment.htm>
More information about the PyQt
mailing list