Skip to content

Commit

Permalink
Disable ettp chat enter key repeat for sending
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Jun 2, 2018
1 parent add9315 commit 15052af
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Themes/_fallback/BGAnimations/ScreenChatOverlay overlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,16 @@ function input(event)
end


if typing and event.type ~= "InputEventType_Release" then
if event.DeviceInput.button == "DeviceButton_enter" then
if typingText:len() > 0 then
NSMAN:SendChatMsg(typingText, currentTabType, currentTabName)
typingText = ""
if typing then
if event.type == "InputEventType_Release" then
if event.DeviceInput.button == "DeviceButton_enter" then
SCREENMAN:SystemMessage(tostring(typingText:len()))
if typingText:len() > 0 then
NSMAN:SendChatMsg(typingText, currentTabType, currentTabName)
typingText = ""
end
update = true
end
update = true
elseif event.button == "Back" then
typingText = ""
typing = false
Expand Down

0 comments on commit 15052af

Please sign in to comment.