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

Fix for DE keyboard layout #933 #935

Merged
merged 4 commits into from
May 20, 2023
Merged

Conversation

pskowronek
Copy link
Member

@pskowronek pskowronek commented May 14, 2023

Fix for DE (and some others) keyboard layout: #933

Added preference option (which is by default false):

obraz

@pskowronek pskowronek requested a review from ahadas as a code owner May 14, 2023 20:42
@pskowronek pskowronek changed the title Quick fix for DE keyboard layout (it breaks PL layout) #933 Quick fix for DE keyboard layout #933 May 15, 2023
@pskowronek pskowronek changed the title Quick fix for DE keyboard layout #933 Fix for DE keyboard layout #933 May 15, 2023
@pskowronek
Copy link
Member Author

PR updated with 1st comment.


@Override
public void configurationChanged(ConfigurationEvent event) {
if (MuPreference.USE_OPTION_AS_META_KEY.equals(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about checking if that's the configuration that has changed without iterating the values of MuPreference by

Suggested change
if (MuPreference.USE_OPTION_AS_META_KEY.equals(
if (MuPreferences.USE_OPTION_AS_META_KEY.equals(event.getVariable())) {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like to operate on strings if we can use enums.... I would rather say that MuPreferences should be refactored to be enums, too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, in my opinion it's alright to use strings now that we can use them in switch-case but that's a matter of taste
I don't mind having an extra step of getting the enum from the label here but we can do it more efficiently - I'll post a separate cleanup

Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @pskowronek !


@Override
public void configurationChanged(ConfigurationEvent event) {
if (MuPreference.USE_OPTION_AS_META_KEY.equals(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, in my opinion it's alright to use strings now that we can use them in switch-case but that's a matter of taste
I don't mind having an extra step of getting the enum from the label here but we can do it more efficiently - I'll post a separate cleanup

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.

Cannot enter 'pipe' and other symbols in terminal on Mac with German keyboard
2 participants