Corentin Cailleaud commited on
Commit
5589a68
1 Parent(s): dc11543
Files changed (1) hide show
  1. cubzh.lua +2 -2
cubzh.lua CHANGED
@@ -113,8 +113,8 @@ local onboardingConfig = {
113
  end
114
  data.ui:parentDidResize()
115
 
116
- data.listener = LocalEvent:Listen(LocalEvent.Name.KeyboardInput, function(char, _, _, down)
117
- if char == "\n" then
118
  print("triggered")
119
  Timer(1, function()
120
  onboarding:next()
 
113
  end
114
  data.ui:parentDidResize()
115
 
116
+ data.listener = LocalEvent:Listen(LocalEvent.Name.KeyboardInput, function(_, keycode, _, down)
117
+ if keycode == require("inputcodes").RETURN then
118
  print("triggered")
119
  Timer(1, function()
120
  onboarding:next()