<div dir="ltr">That shortcut is very generic and can be potentially "eaten" by widgets that accept text input.<div>Does any other modifier-based shortcut work (excluding standard text shortcuts, like ctrl-x or ctrl-a)?<br>Can you provide a minimal reproducible example?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 24 mag 2021 alle ore 19:46 Rodrigo de Salvo Braz <<a href="mailto:rodrigobraz@gmail.com" target="_blank">rodrigobraz@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to define an Insert shortcut in the macOS:</div><div><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"JetBrains Mono",monospace;font-size:9.8pt">insert_action.setShortcut(QKeySequence(Qt.Key_Insert))</pre></div><div>Also tried:</div><div><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"JetBrains Mono",monospace;font-size:9.8pt">insert_action.setShortcut(QKeySequence(<span style="color:rgb(0,128,128);font-weight:bold">"Ins"</span>))<br></pre></div><div>but neither option works (nothing happens). It does work when I run it on Windows.<br></div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div><br></div><div>Rodrigo<br></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">È difficile avere una convinzione precisa quando si parla delle ragioni del cuore. - "Sostiene Pereira", Antonio Tabucchi<br><a href="http://www.jidesk.net" target="_blank">http://www.jidesk.net</a></div>