Skip to content

Commit

Permalink
[ReaderHighlight] Remove duplicated setting on NT devices (koreader#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Commodore64user committed May 11, 2024
1 parent 1398154 commit baab326
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/apps/reader/modules/readerhighlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,12 @@ Except when in two columns mode, where this is limited to showing only the previ
end,
})

-- long_press menu is under taps_and_gestures menu which is not available for non touch device
-- Clone long_press menu and change label making much meaning for non touch devices
-- long_press setting is under taps_and_gestures menu which is not available for non-touch devices
-- Clone long_press setting and change its label, making it much more meaningful for non-touch device users.
if not Device:isTouchDevice() and Device:hasDPad() then
menu_items.selection_text = util.tableDeepCopy(menu_items.long_press)
menu_items.selection_text.text = _("Select on text")
menu_items.selection_text = menu_items.long_press
menu_items.selection_text.text = _("Selection on text")
menu_items.long_press = nil
end

-- main menu Search
Expand Down

0 comments on commit baab326

Please sign in to comment.