mirror of
https://github.com/koreader/koreader
synced 2024-11-04 12:00:25 +00:00
[plugin, Terminal] fix crash on clear screen (#9119)
This fixes https://github.com/koreader/koreader/issues/9108#issuecomment-1132243061 Tapping on clear screen during a running program like top, let's KOReader crash.
This commit is contained in:
parent
73b2b38954
commit
5bcd3d0962
@ -348,14 +348,6 @@ function Terminal:generateInputDialog()
|
||||
end,
|
||||
},
|
||||
{
|
||||
text = "⎚", --clear
|
||||
callback = function()
|
||||
self.history = ""
|
||||
self.input = {}
|
||||
self.input_dialog:setInputText("$ ")
|
||||
end,
|
||||
},
|
||||
{
|
||||
text = "⇧",
|
||||
callback = function()
|
||||
self.input_widget:upLine()
|
||||
|
Loading…
Reference in New Issue
Block a user