Problem solved.
I open /usr/share/inkscape/keys/default.
I see the line:
  <bind gaction="doc.snap-global-toggle"           keys="percent"/>
So, I have written:
<bind gaction="doc.snap-global-toggle"           keys="f"/>
in
~/.config/inkscape/keys/default.xml
It is working now.
Thank you for your patience.
Regards,
Pablo

On Tue, Feb 8, 2022 at 11:13 PM Pablo Fernandez <pablo.fbus@gmail.com> wrote:
Dear inkscape users,

I have installed the latest inkscape available in ppa:inkscape.dev/stable for Ubuntu 20.04.

I would like to change the default keyboard shortcut for toggling global snap from the default "%" to "F" (or "f") key. That used to work for me in inkscape 1.0 and previous versions thanks to the following lines in ~/.config/inkscape/keys/default.xml file:

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<keys
   name="My custom shortcuts">
  <bind
     key="f"
     action="ToggleSnapGlobal"
     display="true" />
  <bind
     key="F"
     action="ToggleSnapGlobal"
     display="true" />
</keys>

But since, I think, 1.1 version, my custom keyboard shortcut "F" is not working any more. I have also tried to change the shortcut via Preferences, Keyboard, Shortcuts but I don't see how to do it.

For completion, I have another shortcut defined in the same file which does work for opening the Tex Text extension:

  <bind
     key="j"
     action="org.ekips.filter.textext"
     display="true"/> 

I appreciate your help,
Best wishes,
Pablo