Skip to content

Support language input keys #63034

Open
Open

Activity

  1. ghost added
    untriaged
    on Dec 21, 2021
  2. huoyaoyuan commented on Dec 21, 2021

    @huoyaoyuan
    Member

    The following API is proposed:

    namespace System
    {
        enum ConsoleKey
        {
            Convert = 0x1C, // or named as ImeConvert
            NonConvert = 0x1D, // or named as ImeNonConvert
            ImeOn = 0x16,
            ImeOff = 0x1A,
        }
    }
  3. added
    api-suggestion
    on Dec 21, 2021
  4. cm3 commented on Jan 8, 2022

    @cm3
    Author
  5. danmoseley commented on Jan 8, 2022

    @danmoseley
    Contributor

    In the public winforms enum linked I notice a typo: "IMEAceept"..

  6. cm3 commented on Jan 9, 2022

    @cm3
    Author

    @danmoseley That is for backward compatibility.

    https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.keys?view=windowsdesktop-6.0&viewFallbackFrom=net-5.0 says "The IME accept key. Obsolete, use IMEAccept instead."

    A comment in http://www.mikepope.com/blog/AddComment.aspx?blogid=2250 explains the history:

    I found System.Windows.Forms.Keys.ImeAceept (ImeAccept) after we shipped it. After that, I put in a test for exposed interface on the windows forms stuff. Every time the interface changed, the test would fail, and I'd have to go look at it and make sure everything was cool. I filed over a dozen bugs on new spelling errors in the interface as a result of the test...

  7. removed
    untriaged
    on Jan 10, 2022
  8. adamsitnik commented on Jan 10, 2022

    @adamsitnik
    Member

    For now I've added this issue to #52374, will try to tackle it when we start working on improving Console

  9. added this to the Future milestone on Jul 10, 2022
  10. adamsitnik commented on Nov 14, 2023

    @adamsitnik
    Member

    Is it possible to recognize them on Unix?

  11. cm3 commented on Nov 18, 2023

    @cm3
    Author

    Are you making a distinction between Linux and Unix in your statement? If not, I am happy to report that those keys are recognised on Ubuntu. If so, please wait for another report from someone.

  12. adamsitnik commented on Nov 20, 2023

    @adamsitnik
    Member

    I am happy to report that those keys are recognised on Ubuntu

    Is there any chance you could run showkey -a command line utility and press that key to see what it's being mapped to?

    I've used it in https://devblogs.microsoft.com/dotnet/console-readkey-improvements-in-net-7/#sys-calls

  13. cm3 commented on Apr 7, 2024

    @cm3
    Author

    I apologize for the significant delay in responding to your inquiry regarding the key recognition issue on Linux. After finally conducting the tests you suggested, I have some results to share.
    Unfortunately, the showkey -a command did not register any response for either of the keys in question. However, by using the xev command, I was able to determine that the Non Convert key is recognized as keycode 102 (keysym 0xff22, Muhenkan) and the Convert key as keycode 100 (keysym 0xff23, Henkan_Mode).
    The PC with Ubuntu installed, on which I intended to perform these tests, was no longer operational. In its place, I've found another PC running Peppermint Linux, which I used to conduct the tests and gather this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionarea-System.Console

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions