Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make numerical enter act the same as normal enter #427

Closed
krzys-h opened this issue Jan 17, 2015 · 2 comments
Closed

Make numerical enter act the same as normal enter #427

krzys-h opened this issue Jan 17, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@krzys-h
Copy link
Member

@krzys-h krzys-h commented Jan 17, 2015

Some people have problems with enter in code editor - http://colobot.info/forum/showthread.php?tid=452, http://colobot.info/forum/showthread.php?tid=565
Appears to be caused by keyboard sending numerical enter code when normal enter is pressed.

@krzys-h krzys-h self-assigned this Jan 17, 2015
@krzys-h krzys-h added this to the alpha-0.1.5 milestone Jan 17, 2015
@tomangelo2
Copy link
Member

@tomangelo2 tomangelo2 commented Jan 18, 2015

File /src/ui/edit.cpp
Change line 454 from

if ( event.key.key == KEY(RETURN) && !bControl)

to

if ( event.key.key == (KEY(RETURN) && !bControl) || (KEY(KP_ENTER) && !bControl))
krzys-h added a commit that referenced this issue Jan 18, 2015
Numerical Enter key should now act the same as normal Enter (#427)
@krzys-h krzys-h closed this Jan 18, 2015
@tomangelo2
Copy link
Member

@tomangelo2 tomangelo2 commented Jan 18, 2015

Well, it's still not fixed. I haven't check this outside an editor, but virtual keyboard from #415 could be useful to seriously fix that.

@krzys-h krzys-h reopened this Jan 20, 2015
krzys-h added a commit that referenced this issue Mar 18, 2015
Should now work everywhere, not only in the editor.
@krzys-h krzys-h closed this Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants