Kodi ignores KEY_BACKSPACE from infrared remote

  • I'm mapping a Samsung infrared remore via ir-keymap. I've placed the following file in /storage/.config :

    # table samsung, type: NEC

    0x70760 KEY_UP

    0x70761 KEY_DOWN

    0x70765 KEY_LEFT

    0x70762 KEY_RIGHT

    0x70768 KEY_ENTER

    0x70758 KEY_BACKSPACE

    0x7072d KEY_PLAYPAUSE

    If I run it via ir-keytable -p NEC -w /storage/.config/samsungremote everything works, except KEY_BACKSPACE, which is ignored by Kodi. It won't even be seen by the Keymap editor plugin, and rebooting doesn't change this behaviour.

    If I execute killall eventlircd and then ir-keytable -s rc0 -p NEC -t I get the following output, upon each button press:

    2988.987027: lirc protocol(necx): scancode = 0x70758

    2988.987061: event type EV_MSC(0x04): scancode = 0x70758

    2988.987061: event type EV_KEY(0x01) key_down: KEY_BACKSPACE(0x000e)

    2988.987061: event type EV_SYN(0x00).

    2989.096477: lirc protocol(necx): scancode = 0x70758

    2989.096508: event type EV_MSC(0x04): scancode = 0x70758

    2989.096508: event type EV_SYN(0x00).

    2989.222889: event type EV_KEY(0x01) key_up: KEY_BACKSPACE(0x000e)

    2989.222889: event type EV_SYN(0x00).

    ... so ir-keytable can see it, but it must be getting lost somewhere along the way, when Libreelec translate its input to lirc commands.

    I've tried replacing KEY_BACKSPACE with the following, but the result is the same: KEY_BACK, KEY_UNDO, KEY_ESC, KEY_EXIT, KEY_E.

    Libreelec is a fresh install (as of yesterday) on an Intel NUC, using the inbuilt infrared receiver.

    --------------------

    I've rebooted once more, and now KEY_BACKSPACE works for some reason.