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