Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1037871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:54:12+00:00 2026-05-16T14:54:12+00:00

I have an Eclipse plugin that makes use of several keybindings (Alt-G x, Alt-G

  • 0

I have an Eclipse plugin that makes use of several keybindings (Alt-G x, Alt-G y, etc…). For most keyboard layouts, there are no problems for these specific keybindings. However, for Swiss German, it turns out that ‘Alt-G’ creates ‘@’ and this makes it very hard for Swiss Germans to use the plugins I created. I do not want to change the current keybindings since this would confuse existing users.

My question is:

How can I programmatically detect that a user is on a Swiss German keyboard and programmatically disable (or change) those keybindings?

(Is this something I can specify in the plugin.xml?)

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:54:12+00:00Added an answer on May 16, 2026 at 2:54 pm

    To answer my own question, you can use the org.eclipse.ui.bindings extension point to completely solve the problem.

    First, you set a keybinding as you normally would, and then you can un-set that particular keybinding on a single locale. And for that locale only, you can re-set the binding to something different.

    This works, but is unfortunately very verbose if you have lots of keys to bind, unbind, and rebind.

    Here is an example:

          <!-- set binding globally -->
          <key
            commandId="com.foo.myCommandId"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+G T"/>
          <!-- un-set binding for Swiss German -->
          <key
            commandId="com.foo.myCommandId"
            contextId="org.eclipse.ui.contexts.window"
            locale="de_CH"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+G C"/>
          <!-- re-set binding for Swiss German with a new key combo -->
          <key
            commandId="com.foo.myCommandId"
            contextId="org.eclipse.ui.contexts.window"
            locale="de_CH"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+M3+G C"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Eclipse plugin project that has several file resources that I would
I have an Eclipse RCP plugin that requires a DLL. What is the recommended
I have a Maven project (in Eclipse using the m2eclipse plugin) that contains code
in eclipse plugin i have two plug-in which are used there own class loader
I have a plug-in to an Eclipse RCP application that has a view. After
Question about the m2 eclipse plugin. Currently I have Eclipse Java EE IDE for
I'd like to have my Eclipse plugin cause a URL to be opened by
I have installed eclipse JDE plugin (ie BlackBerry_JDE_PluginFull_1.0.0.67.exe) , i can create a blackberry
I have created an Eclipse plugin which creates a view in Eclipse. Currently it
I have Eclipse Helios and have downloaded and installed the GWT plugin. If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.