Skip to content

Instantly share code, notes, and snippets.

@zwim
Last active March 3, 2023 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zwim/e5f9a12922f645fdf390faaadfeb5ac7 to your computer and use it in GitHub Desktop.
Save zwim/e5f9a12922f645fdf390faaadfeb5ac7 to your computer and use it in GitHub Desktop.
Don't show keyboard shortcut on KOReader devices which have a keyboard. (see https://gist.github.com/zwim/b0d46fa83d9dbb853324f3e0c17562b5)
-- 2-no-keyboard-shortcuts.lua
--
-- Hides keyboard shortcuts on devices with keyboard.
local Device = require("device")
Device.hasKeyboard = function () return false end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment