-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Closed
Feature
Copy link
Milestone
Description
Describe the bug
Works for arrow keys but not letters
Issue is probably that keybindings, mousebindings and collection navigator consume the events before the users event.
I think that when the user has an explicit event tied to these then they should get priority.
Application.Init();
var w = new Window()
{
Title = "Showcase"
};
var lv = new ListView()
{
Width = Dim.Fill(),
Height = Dim.Fill(),
};
w.Add(lv);
lv.SetSource(new ObservableCollection<string>(["cat","fish"]));
lv.MouseEvent += (_, e) =>
{
if (e.IsSingleClicked)
{
// Also never happens
MessageBox.Query("hey", "ok", "ok");
}
};
lv.KeyDown += (_, e) =>
{
MessageBox.Query("hey","ok","ok");
};
Application.Run(w);
Application.Shutdown();To Reproduce
Steps to reproduce the behavior:
- Click into list
- press any letter key
Expected behavior
enter callback
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Set Project & Milestone
If you have access, please don't forget to set the right Project and Milestone.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done