Commit Graph

424 Commits (0bca6dadb36d53f1be2c666147c6a7c413e69149)
 

Author SHA1 Message Date
Daniel P. Berrangé 0bca6dadb3 Fix inverted handling of KeyPgDn/KeyPgUp in List widget
Consider a list with 5 items, and the currentItem index is 2, and
all items fit on the screen without scrolling.

KeyPgDn will set currentItem to 7 which is out of bounds, and
gets wrapped around to 0.

KeyPgUp will set currentItem to -3 which is out of bounds, and
gets wrapped around to 4.

Thus PgDn selects the first item, while PgUp selects the last item,
which is the opposite of expected behaviour for these keys. Fix
this by clamping currentItem to the boundaries in the key handler.

Fixes: https://github.com/rivo/tview/issues/580
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
4 years ago
Oliver ae9464cc35 Upgraded printing and style handling to the new definition of tcell.ColorDefault. 4 years ago
Oliver ae065beb93 Fixed Box border background colour. 4 years ago
Oliver b2dec96e1a Upgraded to tcell v2.2.0 and rewrote the Application.Suspend() function to use tcell's new methods. 4 years ago
Oliver d2371c651b Added more clarification for the use of Application.Draw(). 4 years ago
rivo 046ce97f77
Merge pull request #574 from dundee/patch-1
add gdu to projects
4 years ago
Oliver eaef439da5 Removed a project that 404'ed from the README file. 4 years ago
Daniel Milde 9888d6fcca
add gdu to projects 4 years ago
Oliver 8a8f78a6dd Added RemoveChild() to TreeNode. Resolves #561 4 years ago
rivo 8d551670db
Merge pull request #567 from millerlogic/mouse-buttons-fix
Update mouse buttons for tcell v2
4 years ago
Oliver 73a23207d2 Added more bash-like key bindings to InputField. Resolves #549 4 years ago
Oliver c3311ba972 Fixed format for reinserted region tag. 4 years ago
Oliver 09f1384966 Added SetMaxLines() to TextView. Resolves #451, fixes #452 4 years ago
rivo b1efc6d8c1
Merge pull request #522 from jubalh/typo1
Fix typo in SetColumns() documentation
4 years ago
Oliver 7e1574f46c Merge branch 'master' of github.com:rivo/tview 4 years ago
Oliver dfabe788d4 Allowing list items to shift horizontally. Resolves #512, fixes #513 4 years ago
Chris Miller 38e7206af9 Update mouse buttons for tcell v2 4 years ago
rivo dbc1f32bb1
Merge pull request #552 from ajaxray/master
Added geek-life to the list of projects using tview
4 years ago
Anis uddin Ahmad 13009558b2
Added geek-life to the list of projects using tview 4 years ago
Oliver 745e4ceeb7 Upgraded to latest tcell which uses latest go-runewidth which uses uniseg for improved Unicode handling. Resolves #548 4 years ago
Oliver c818a0c789 Improved autocomplete handling, incuding proper handling of the Tab key. Resolves #546 4 years ago
Oliver a72fc10c54 Enabling mouse (if requested) on replaced Screen objects. Fixes #545 4 years ago
rivo 8760564449
Merge pull request #539 from swartzrock/master
Added ecsview
4 years ago
Oliver 4624fa9b67 Added hierarchy navigation to TreeView. Resolves #489 4 years ago
Jason Swartz a8048787f0
Added ecsview 4 years ago
Oliver 5406288b8e Improved finding the next selectable cells in Tables. Resolves #498 4 years ago
Oliver 7481775fcd Application can be stopped in suspended mode. Fixes #499 4 years ago
Oliver efed17a61c Added TreeNode.GetLevel(). Resolves #502 4 years ago
Oliver f007e9ad38 Customization of strings displayed when a checkbox is checked. Resolves #518 4 years ago
Oliver f9f2182520 Upgraded to latest uniseg package. 4 years ago
rivo 358d1d33e9
Merge pull request #504 from profclems/patch-1
Add GLab to list of projects using tview
4 years ago
rivo a9ce704695
Merge pull request #516 from termoose/add-irccloud
Added IRCCloud CLI client to list of projects
4 years ago
Oliver 675ed5b96b Removed Focusable interface. 4 years ago
Oliver c3a49506be Merge branch 'master' of github.com:rivo/tview 4 years ago
Oliver 237e3862e0 Bugfix: TreeView mouse events need to consider scroll offset. Fixes #528 4 years ago
Clement Sam dfcd0cb598
Merge branch 'master' into patch-1 4 years ago
Michael Vetter 05627e20a2 Fix typo in SetColumns() documentation 4 years ago
Ole Andre Birkedal 08f99e45b7 added irccloud cli client to list of projects 4 years ago
rivo d551c850a7
Merge pull request #487 from dhulihan/patch-1
Update README.md
4 years ago
Oliver 273cbf289d Typo fix. 4 years ago
Oliver e4d167311d Upgraded to latest tcell version. Results in a minor incompatibility in the Table class. 4 years ago
Clement Sam 11972b496b
docs(readme): add glab to tview projects 4 years ago
Oliver 42866ecf6c Selected autocomplete items should be used without colour tags. Fixes #472 4 years ago
Oliver 9b49eb3fef Added a "clicked" handler to TableCell. Resolves #470 4 years ago
Dave Hulihan 5f85090c27
Update README.md 4 years ago
Oliver 53d50e499b Bugfix in Flex which led to a panic. 4 years ago
Oliver 3acd674ec1 Minor fixes. Also added winman. 4 years ago
rivo 25aecd0c3a
Merge pull request #454 from wkoszek/feature/tview_apps
Add list of projects using tview.
4 years ago
Oliver 0a2427525a Removed size change check (apparently this led to problems on Windows). Fixes #401, closes #404 4 years ago
Oliver deb54e1422 Keyboard events are now propagated down the hierarchy, allowing users to intercept them. Closes #421 4 years ago