Define keyboard shortcut for insert hyperlink and when you press your key you'll get edit hyperlink; define for edit and you'll get insert.
Steps to reproduce:
1. Tools | Customise... | Keyboard (tab) | select unused shortcut key. Try Ctrl+K.
2. in "Category" list select "Insert"; in Function select "Hyperlink"
3. Click "Modify"
4. Click OK
5. In a document, type "Foo link bar". select "link" and press shortcut key (Ctrl+K in my example).
Insert Hyperlink dialog.
Now create a shortcut for Edit Hyperlink:
6. Tools | Customise... | Keyboard (tab) | select unused shortcut key. Try Ctrl+SHIFT+K this time.
7. in "Category" list select "Edit"; in Function select "Hyperlink"
8. Click "Modify"
9. Click OK
10. In a document, type "Foo link bar". select "link" and press shortcut key (Ctrl+SHIFT+K in my example).
Insert Hyperlink Dialog appears.
Nothing (there is no hyperlink to edit).
11. Type a few words and create hyperlinks for them with your EDIT HYPERLINK shortcut; edit existing hyperlinks with your INSERT shortcut.
The EDIT shortcut in fact calls the INSERT function and the INSERT shortcut in fact calls the EDIT function.
EDIT function causes EDIT behavior, INSERT causes INSERT.
Operating System: Ubuntu
Version: 184.108.40.206 release
Hi. I followed your steps to reproduce this on LibreOffice Version 220.127.116.11+. I found that you are right- when you customize a keyboard shortcut, your Insert Hyperlink does nothing initially.
However, I found a very similar bug that says you can work around that by choosing Insert in Category, and the function is "Insert Hyperlink". I will mark this bug as a duplicate of the other one. The other bug also specifies that Insert Hyperlink and Edit Hyperlink are switched.
*** This bug has been marked as a duplicate of bug 50063 ***