Commit Graph

39 Commits

Author SHA1 Message Date
airstruck
971afaf1e7 Text widget: intersect scissor.
Fixes a visual bug where text would display outside widget boundary.
Mved intersectScissor to Backend.
2016-02-08 11:52:10 -05:00
airstruck
3ff76864d3 text widget: try to determine whether keypresses are related to text input, fix #40 2016-02-05 16:43:14 -05:00
airstruck
a7837d64db fix #41 2016-02-05 14:23:53 -05:00
airstruck
0b62db39ae fix scroll-to-caret in text widget, fixes #38 2016-02-05 00:37:55 -05:00
airstruck
95ba34f7b1 text widget eats all keys except tab, fix #37 and #39 2016-02-05 00:28:56 -05:00
airstruck
04fcd2c5f4 Fix regression in text widget 2016-01-30 15:35:00 -05:00
Robert Machmer
f336250785 Remove unused variable 2016-01-28 19:38:36 +01:00
airstruck
0c33538de9 text widget: expose special key combos 2016-01-27 16:33:11 -05:00
airstruck
346cbac946 text widget: separate mac/non-mac keyboard support 2016-01-27 15:13:03 -05:00
airstruck
e6c649ba49 text widget: move caret a word at a time 2016-01-27 13:28:17 -05:00
airstruck
0fc431d894 command and ctrl 2016-01-26 20:06:34 -05:00
Robert Machmer
bf8d59ce4c Allow user to move caret to end of a line or its beginning
On Windows the user can press the 'home' or 'end' key to jump around. On
OSX he has to use cmd+arrow keys to move around.

If the user holds down shift while performing the above operations the
whole line will be selected from where the caret was currently placed.
2016-01-25 11:12:58 +01:00
Robert Machmer
1a31293ac5 Make controls nicer for OSX users
These operations are done via the command button on OSX.
2016-01-25 01:52:23 +01:00
airstruck
fce7b2698c text widget: handle ctrl-a (select all) 2016-01-21 15:38:35 -05:00
airstruck
19bb0b935f text widget: handle "delete" key 2016-01-21 15:36:23 -05:00
airstruck
b084583f42 trim text selection range when appropriate; fix #22 2016-01-21 15:24:33 -05:00
airstruck
3904631dda Clean up text widget.
This fixes a visual bug where the highlighted area wouldn't update
when the widget was reshaped, and fixes some weirdness with local
functions in preparation for exposing them as part of a rich API
for the text widget.
2016-01-04 02:09:44 -05:00
airstruck
c73833337e attrib "key" -> "shortcut", also fix #20 2016-01-03 01:18:04 -05:00
airstruck
1ee239b203 rework mouse buttons, fixes #18 2015-12-19 23:54:57 -05:00
nobody
8dd46e2bbc more window stuff 2015-12-17 20:30:00 -05:00
airstruck
ed4e8b562a improve widget docs 2015-12-15 14:21:30 -05:00
airstruck
c8ca310811 minor improvements 2015-12-10 16:05:54 -05:00
airstruck
367535ad33 fix backspace in text widget 2015-12-06 11:47:15 -05:00
airstruck
a2fb4e58c1 add dark theme 2015-12-05 03:53:47 -05:00
airstruck
f03b5c7bd4 Formalize type attribute and support it in styles 2015-12-02 15:48:21 -05:00
airstruck
a902385d55 minor bug fixes 2015-12-02 01:42:35 -05:00
airstruck
2d64e6ca69 formalize attributes 2015-11-29 14:58:08 -05:00
airstruck
290f6333b7 getRectangle returns x,y,w,h instead of x1,y1,x2,y2 2015-11-27 06:40:02 -05:00
airstruck
2c81c0c293 word wrap 2015-11-26 08:53:42 -05:00
airstruck
bbba7e1b3d add dedicated backend (WIP) 2015-11-22 12:36:44 -05:00
airstruck
97b2332d47 fix utf8 text input 2015-11-12 17:43:57 -05:00
airstruck
6aaa128463 hotkeys use modifiers 2015-11-11 23:49:54 -05:00
airstruck
997f9c8d12 shadow properties 2015-11-02 23:40:52 -05:00
airstruck
f436093380 make text widget scroll 2015-11-02 06:03:39 -05:00
airstruck
4baea757ef text entry, more keyboard support 2015-11-02 00:16:48 -05:00
airstruck
0a36a6b411 text entry, partial support 2015-11-01 17:28:53 -05:00
airstruck
f19ef288ca scrap widget inheritance 2015-10-27 19:27:14 -04:00
airstruck
995825b9b3 adjust children for parent padding and margin 2015-10-25 16:01:41 -04:00
airstruck
e490e2899f initial commit 2015-10-21 18:35:14 -04:00