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

Exclude vk_enter from adding to keyboard_string on Enter Press #2378

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amr-salahuddin
Copy link

Issue:
The current implementation appends vk_enter to keyboard_string on Enter key press, leading to unexpected behavior.

Changes Made:
Modified the code to exclude vk_enter from being appended to keyboard_string when the Enter key is pressed.
in enigma-dev/ENIGMAsystem/SHELL/Platforms/xlib/XLIBmain.cpp line:71

if (actualKey == enigma_user::vk_backspace) {
    if (!enigma_user::keyboard_string.empty()) enigma_user::keyboard_string.pop_back();
} else if (actualKey != enigma_user::vk_enter) {
    enigma_user::keyboard_string += enigma_user::keyboard_lastchar;
}

Related Issue:
#2080

Please review the changes and confirm that excluding vk_enter addresses the problem.

Thank you for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant