Comments (5)
@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.
@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.
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.
from terminal.gui.
@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.
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)
- Disable borders on a MenuItem HOT 4
- v2 crashes on run with missing dependency JetBrains.Annotations HOT 33
- When adding more than one Window + TextView together with a MenuBar, the displayed text changes to the text of the first added Window HOT 4
- Create custom commands/key bindings HOT 3
- Mouse is broken in v2 HOT 2
- v2: Big performance impact on ListView/ComboBox's that contain a lot of items HOT 3
- Multiple views with the same `HotKey` should be supported HOT 1
- Nuget.Config for v2 can behave badly for local CLI builds, plus some minor QoL stuff for Terminal.Gui.csproj and the solution
- Build .... oddities...
- Make the PowerShell modules arch-agnostic for now HOT 3
- Fail gracefully for impossible hosts HOT 4
- Rename `StateChangedEventArgs<T>` to `CancelEventArgs<T>` HOT 63
- A more reliable means of avoiding errors caused by stdin or stdout redirection
- (Internal) Better regexes for TODO-list items
- Clicking the StatusBar causes the event to be executed more than once. HOT 1
- `Dim.Auto (Content)` is broken if subviews use `Pos.Center` etc... HOT 1
- `StatusBar` should clip, not overwrite, when last item doesn't fit HOT 1
- `TextField` prevents default `Button` from working in some cases HOT 7
- Some more prep for revamped sourcegens and CI HOT 1
- Enabling trim mode breaks program at runtime (v2 only) HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminal.gui.