Skip to content

Commit

Permalink
UI catalog (gui-cs#387)
Browse files Browse the repository at this point in the history
* key down/up support

* line endings?

* line endings

* KeyDown/Up support

* line endings

* line endings

* Revert "Drop NuGet restore"

This reverts commit 5c7a0d0.

* Revert "Revert "Drop NuGet restore""

This reverts commit 2dc5fce.

* updated demo

* defined styles

* Smarter StatusBar bottom tracking.

* Prepping for gui-cs#376

* Oops.

* Fixed StatusBar 'snap to bottom'

* line endings

* Revert "Fixed StatusBar 'snap to bottom'"

This reverts commit 9a91c95.

* started UICatalog project

* Initial working POC.

* Fix newlines

* merge

* textalignment demo tweaks

* textalignment demo tweaks

* Unicode Menu Scenario

* not sure why this keeps changing

* re-added project to .sln file

* re-enabled status bar

* moved scenarios to dir

* building a dim and pos demo

* terminal.sln

* progress...barely

* fixed exit

* progress with some underlying fixes to Label

* added readme

* fixes build issue

* launch

* made default colors readable on Windows

* major UI Catalog upgrade

* added more demos and updated readme

* refactored and added more tests

* added ref to Issue gui-cs#437

* added OnKeyUp support to Curses and Net drivers

* more tweaks - grab PR gui-cs#438 first

* Added a OpenSelectedItem event to the ListView gui-cs#429

* updates

* moved KeyUpHandler out of special ESC stuff

* more tweaks & improvements

* testing top window bug

* supported OpenSelectedItem

* lots of updates

* fixed regression, fixed gui-cs#444

* better button scenario

* tweaks

* add Ready event to Toplevel

* dotfx .gitignroe

* ready for ready

* updated colors based on feedback; consolodated config code

* tweaked readme

* readme

* Added Editor demonstrating TextView

* Added Editor demonstrating TextView

* added hexeditor scenario

Co-authored-by: Miguel de Icaza <miguel@gnome.org>
Co-authored-by: BDisp <bd.bdisp@gmail.com>
  • Loading branch information
3 people committed May 22, 2020
1 parent 04bc474 commit 8ca3d4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Terminal.Gui/Views/ListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public override bool ProcessKey (KeyEvent kb)
break;

case Key.Enter:
OnOpenSelectedItem ();
OpenSelectedItem?.Invoke (this, new EventArgs ());
break;

}
Expand Down Expand Up @@ -525,10 +525,10 @@ public override bool MouseEvent(MouseEvent me)
SetNeedsDisplay ();
return true;
}
OnSelectedChanged ();
SelectedChanged?.Invoke ();
SetNeedsDisplay ();
if (me.Flags == MouseFlags.Button1DoubleClicked)
OnOpenSelectedItem ();
OpenSelectedItem?.Invoke (this, new EventArgs ());
return true;
}
}
Expand Down

0 comments on commit 8ca3d4b

Please sign in to comment.