Giter VIP home page Giter VIP logo

Comments (5)

BDisp avatar BDisp commented on July 3, 2024 1

@cjlotz can you please test the PR #3542, on Linux and macOS to see if it working better. On macOS, for the Alt key to work at all, you need to change the following configuration in Terminal. Thanks.

Terminal > Preferences > Profiles > Keyboard and just check Use Option as Meta key

from terminal.gui.

cjlotz avatar cjlotz commented on July 3, 2024 1

@BDisp I can confirm that the fixes work on my Mac and also in Ubuntu 22.04 running in WSL on Windows 11.

from terminal.gui.

tznind avatar tznind commented on July 3, 2024

This sounds like a bug. But having more information to diagnose would help.

Can you check whether NumLock or Scroll Lock is down when trying to type. Sometimes that makes a difference (although it really shouldn't).

One thing that would help is to know exactly what the keycode is that is being ignored.

You can trap all key events at application level with a global listener (see below) and then look at e in the debugger. If you could provide a screenshot of what that is showing on the affected OS that would be great.

        Application.KeyDown += (s, e) =>
        {
            // Break point here
        };

Another way is to run the 'Keys' scenario in UICatalog on the machines, it logs all key strokes.

image

from terminal.gui.

cjlotz avatar cjlotz commented on July 3, 2024

@tznind Thanks for the reply.

Following your suggestion, I added a status bar item that logs the key code. On Windows 11 when I execute this, I see D1, D2... for the digits. On Linux (Ubuntu 22.04 running in WSL on Windows 11), the same key codes are logged as 17, 18, 19...

I wasn't sure if running in WSL might be causing the issue, so I compiled this on my Mac as well. When executing on the Mac I see the same behaviour, i.e. the digits are logged as 17,18,19. On the Mac I have some additional issues with some other key codes as well. For example, Backspace is logged as 95 on Mac, but interpreted correctly on Linux and Windows.

Thoughts?

from terminal.gui.

cjlotz avatar cjlotz commented on July 3, 2024

I've now also verified this with the Keys example on the Mac. Running the Keys example for the develop branch works fine, but running the Keys example from the v2_develop branch does not work for digits and some other keys.

from terminal.gui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.