60 Commits (master)

Author SHA1 Message Date
cuibuwei 943ecd8ba4 chore: remove repetitive word
Signed-off-by: cuibuwei <cuibuwei@gmail.com>
1 month ago
Oliver c9421b4bd9 Enabled bracketed pasting. 3 months ago
Oliver b11bfc7683 Reconciled Form.focusedElement with actual focus. Fixes #922 6 months ago
Kian-Meng Ang 5d85e6a030 Fix typos
Found via `codespell -H -S .git -L rightt,wth,bu`
7 months ago
Oliver caea67a4ef Implemented string parser and migrated all widgets but TextView. 9 months ago
Oliver 84f9c0ff9d Clicking on a form outside a form item will focus it. Fixes #793 1 year ago
Oliver 47b3275db4 Form elements can now also be disabled. Resolves #192 1 year ago
Oliver 7dfff1ce78 Don't focus text views in forms. Fixes #797 1 year ago
Oliver c5b1a7d818 Finished Image implementation. 1 year ago
Oliver ccce554c38 Using tcell.Style for buttons, allowing us to control it better. Resolves #704 1 year ago
Oliver 3f246bda86 Text views can also become part of forms. 1 year ago
Oliver ed3ea789e9 Text area can now be added to forms. See #594 2 years ago
Oliver cecb44578c Setting focus is now based on a "mouse down" event instead of a "click" event. 2 years ago
Oliver 1b3174ee3d Added callback functions for focus and blur events. 3 years ago
Oliver 175cc7d7ce Button.SetBlurFunc() should have been named Button.SetExitFunc(). 3 years ago
Oliver 807e706f86 Forms cannot rely purely on a rect check for mouse clicks as drop-downs may extend beyond it. Fixes #602 3 years ago
Oliver 2003bc0698 Removed an unnecessary call to Focus() in Form. Fixes #612 3 years ago
Oliver 675ed5b96b Removed Focusable interface. 4 years ago
Oliver e4d167311d Upgraded to latest tcell version. Results in a minor incompatibility in the Table class. 4 years ago
Oliver deb54e1422 Keyboard events are now propagated down the hierarchy, allowing users to intercept them. Closes #421 4 years ago
Oliver e352ec0156 Fixed mouse/keyboard input issues with input fields and forms. Fixes #363 4 years ago
Oliver 9af6826328 Added/fixed comments, some structural changes/bugfixes for mouse support. Table, TextView, and TreeView still open. Closes #363 4 years ago
rivo 160d8fda1d
Merge pull request #363 from millerlogic/mouse-support
Mouse support
4 years ago
Chris Miller 8abbf770ec Change mouse handler func 4 years ago
Chris Miller 9598ca2519 New mouse design
capture bool not finalized
4 years ago
Oliver c5f3e4f883 Added GetFocusedItemIndex() to Form. Resolves #293 4 years ago
Oliver 9c225ecd57 Added GetFormItemCount() to Form. Resolves #298 5 years ago
Chris Miller 96875c75b9 Added mouse handling 5 years ago
Oliver f8bc69b903 Every redraw of a Form re-evaluates the focus index. Fixes #144 5 years ago
Mike Schinkel c2c3679add Fix initialization bug in AddDropDown(), issue #290. 5 years ago
Oliver 384f577a62 Added SetFocus() to Form which changes the focus to a specific form element. Resolves #286 5 years ago
Oliver f16ba37c6a Added functions to remove all buttons from forms and from modals. Resolves #259 5 years ago
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 5 years ago
Oliver 5991278513 If a Form has no focusable elements, it keeps the focus itself. Fixes #198 6 years ago
Oliver a677b985cc Allowing the use of arrow keys in modal buttons, too. Resolves #167 6 years ago
Oliver 21f50f5bc4 Fixed the docs of FormItem. Fixes #153 6 years ago
Oliver c33dd0cf8e Added form item removal functions and more ways to find items. Resolves #137 6 years ago
Oliver f855bee020 Separated form item "done" function from "finished" function. Resolves #39 6 years ago
Oliver 5bd22542e5 For Form.GetFormItemByLabel() to work, we must not modify the label text. Fixes #94, fixes #99 6 years ago
Oliver cc84c982fc Added GetFormItemByLabel(). Resolves #94 6 years ago
Oliver 258c9d1f8e Forms will attempt to keep focused form items within available area. Fixes #79 6 years ago
Oliver 2a83b20ce3 Improved documentation. 6 years ago
Oliver 7c086b1113 Updated Form documentation. 6 years ago
Oliver 4db30f9ed4 "FieldLength" is now "FieldWidth" everywhere for clarity and consistency. Sorry for this breaking change. It is better in the long run. 6 years ago
Oliver 258f212e5e Added color tag functionality to all strings. Resolves #25 6 years ago
Oliver aa25839cfa Introduced horizontal item alignment in forms. Resolves #33 6 years ago
Oliver c105638ec3 Form now has a Clear() function. Resolves #32 6 years ago
Oliver 38d663c267 In Form, changed GetElement() to GetFormItem() for consistency reasons. 6 years ago
Oliver d6ce974e6d Added masking to InputField, password field to form. Resolves #7, resolves #8. 6 years ago
Oliver 61d8ea30f8 Added support for wide unicode characters (e.g. Chinese). Resolves #9 6 years ago