27 Commits

Author SHA1 Message Date
Jesse Duffield
dfd3eb22e1 only support one view per context 2022-08-06 13:20:55 +10:00
Jesse Duffield
69f0c798ee better handling of click events 2022-02-27 13:27:29 +11:00
Jesse Duffield
77a1b96317 support alt-enter key 2021-04-02 15:07:18 +11:00
Jesse Duffield
99a94bdceb add back tab to mapping 2021-02-09 22:59:41 +11:00
Jesse Duffield
908f90fdc1 support back tab 2021-02-09 22:57:06 +11:00
Jesse Duffield
347bedd836 enable mouse dragging 2021-02-09 21:47:58 +11:00
Jesse Duffield
f5a9733d18 awesome WIP
WIP

WIP

WIP

WIP

WIP
2020-12-24 15:19:37 +11:00
Jesse Duffield
3e1f0f7c3e support searching in views 2020-02-23 21:51:15 +11:00
Jesse Duffield
b13bda3195 support setting contexts on keybindings 2019-11-16 12:39:47 +11:00
Jesse Duffield
01cdcccd05 add ModMotion modifier for mouse drag events 2019-11-10 16:37:28 +11:00
mjarkk
1a12390d8c Fixed the second error 2019-05-06 19:42:41 +02:00
Jesse Duffield
37a5843d01 use jesse's fork of termbox which handles poll event errors 2018-09-19 19:40:19 +10:00
Jesse Duffield
76a959bb4b enforce that keybindings can only be handled by a single handler, prioritising view handlers over global handlers 2018-08-21 22:46:08 +10:00
Jesse Duffield
2f3eb04eb0 Ignore char keys when in an editable panel 2018-06-05 18:43:39 +10:00
Dustin Willis Webber
7ac95c981b
Add MouseRelease, MouseUp and MouseDown 2016-11-24 16:23:44 -05:00
Roi Martin
40dbad569f Introduce GUI managers to replace layout functions 2016-10-24 08:36:23 +02:00
Roi Martin
4b628e45b2 Add Gui.Execute to safely update the GUI from goroutines. 2016-01-26 00:06:54 +01:00
Roi Martin
faa12e105a Full mouse support. Add mouse example. Make golint happy.
- Full mouse support based on hazbo's initial work.
- Add example to show mouse support.
- Fix comments, naming conventions, etc. to make golint happy.
2016-01-23 16:07:42 +01:00
Harry Lawrence
c36dfefa9b Enabled very basic mouse support
I see this as work in progress, for now. In terms of the public API, all the
end user has to do is something like g.EnableMouse = true. I think this is
reasonable and may not have to really change. Although I think the way it's
used with KeyBindings should maybe be changed. We need to expose the X and Y of
the click event - I'm not sure if this is possible currently, although Gui has
an unexported event field of type termbox.Event that I believe contains this
information.

Mouse support is something I need for a project I'm using Gocui, I noticed
there was an issue open in relation to this so I figured I'd send back what
I've started already.

Thanks for making gocui - it's awesome.
2015-12-11 11:51:43 +00:00
Roi Martin
0193dee642 Refactoring of Gui.onKey() 2015-02-13 21:02:56 +01:00
Roi Martin
98a2fe7a6a Add missing LICENSE header. Fix typo in LICENSE headers 2015-01-31 20:39:43 +01:00
Roi Martin
cebc72c201 Add Modifier ModNone. Simplify examples 2015-01-24 14:23:46 +01:00
Roi Martin (@nibble_ds)
5dc9b75bc3 Add API documentation 2014-01-19 17:03:52 +01:00
Roi Martin (@nibble_ds)
8a88a69100 Add LICENSE/AUTHORS headers and files 2014-01-14 20:11:12 +01:00
Roi Martin (@nibble_ds)
cee092a9f8 Clean up API 2014-01-11 20:29:16 +01:00
Roi Martin (@nibble_ds)
eea442c6fb Minor fix 2014-01-09 21:58:31 +01:00
Roi Martin (@nibble_ds)
0c57f28caa Implement keybindings. Rename AddView to SetView. 2014-01-06 01:18:00 +01:00