summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
AgeCommit message (Collapse)Author
2021-04-03InputWidget: Don't buffer contents too earlyJaakko Keränen
2021-03-30Widget: Arrangement debugging; min sizeJaakko Keränen
There is a problem with repeated arrangements: the previous set sizes affect subsequent outcomes. This results in Preferences not being able to reduce in size, only to expand. It should be possible to reset sizes back to zero/minimum size before starting an arrangement, but LabelWidget needs to cooperate by using `minSize` to set its default size. `minSize` is preferable to fixedSize because then the widget can go through the usual arranging logic. To be continued at a later time...
2021-03-27InputWidget: Select by wordJaakko Keränen
IssueID #134
2021-03-27Processing of double clicksJaakko Keränen
The click handling utility no longer treats double clicks as a special case. An arbitrary number of clicks is kept in a separate counter.
2021-03-23UI language preference; switching at runtimeJaakko Keränen
IssueID #192
2021-03-23Lang: Applied string IDs everywhereJaakko Keränen
More or less everywhere? IssueID #192
2021-03-19InputWidget: Improved default scheme hidingJaakko Keränen
Restore when there is more space available.
2021-03-17InputWidget: In a narrow window, omit the default URL schemeJaakko Keränen
The default URL scheme is "gemini". If missing, it will always be added back when making requests. This allows it to be omitted from the URL input field if space needs saving. Other schemes, like "gopher", won't be omitted.
2021-03-13Text: Separate glyph caching procedureJaakko Keränen
Previously glyph caching was done during text rendering, but that would mean lots of swapping between rendering stuff to the cache and then immediately afterward rendering to the display. There would be a swap per each new glyph. Now the entire document's glyphs are precached at once when a request is finished. Glyphs are also cached in larger batches when new text needs to be drawn.
2021-03-13Fixed resizing of input dialogsJaakko Keränen
2021-03-12Cut/copy/paste paste via menusJaakko Keränen
IssueID #175
2021-03-12InputWidget: Set/get content paddingJaakko Keränen
2021-03-06Mobile: Dealing with keyboard heightJaakko Keränen
The software keyboard obstructs part of the UI, so need to offset the view if the focused input widget would not be visible.
2021-03-06Mobile: Dialog styling for phonesJaakko Keränen
2021-03-06Mobile: Widget interaction and appearanceJaakko Keränen
Overflow-scrollable allows momentum scrolls. Adjusting fonts in phone sheets.
2021-03-05Restructuring dialogs for mobileJaakko Keränen
On a phone, dialogs are restructured to be more vertical and full-width.
2021-03-04Changing UI scaling at runtimeJaakko Keränen
UI scaling factor is applied when closing the Preferences dialog. IssueID #83
2021-03-03CapsLock as a modifier key; adding a modifier mapping tableJaakko Keränen
IssueID #87
2021-02-24Lock button is embedded in the URL fieldJaakko Keränen
2021-02-24UI font consistencyJaakko Keränen
Try to minimize the number of fonts in the UI. Input fields now use the same UI font as everything else. The monospace font was originally used because the widget required one, but that is no longer the case.
2021-02-23Show a search indicator in the URL barJaakko Keränen
Indicate to user when entered text will be user for a search engine query. IssueID #157
2021-02-23Editing bookmark iconsJaakko Keränen
IssueID #140
2021-02-21Animated widget offsets; phone sidebarsJaakko Keränen
2021-02-19iOS: Adjusting the UI for a tablet screenJaakko Keränen
2021-02-19Touch: Scrollbars can be dragged via touchJaakko Keränen
Widgets can be flagged as being touch-draggable, which makes them receive finger down/motion/up events directly, and no momentum scrolling is applied.
2021-02-08CleanupJaakko Keränen
Function naming convention is: {method}_{class}() Ran clang-format on the changes.
2021-02-07paste: refactor to allow for Shift+InsThomas Adam
Under Linux/Unix, the key combination of "Shift+Ins" allows for pasting from the clipboard into most applications. Refactor pasting to its own function and define the key combination of Shift+Ins to allow for this.
2021-02-05Experimenting with an iOS buildJaakko Keränen
iPlatformApple applies to both macOS and iOS. Added iPlatformAppleDesktop and iPlatformAppleMobile to make a distinction between the two. IssueID #96
2021-02-03XDG: Check XDG_CONFIG_HOME and the user's download directoryJaakko Keränen
Also added a build option to disable changing the user download directory within Lagrange, since that's set via XDG config.
2021-02-02Improved focus switching for dialogsJaakko Keränen
Widgets can now be defined as being the "focus root", i.e., the topmost widget under which focus switching happens. Normally this is the window root widget, but dialogs use this flag to confine focus switching inside the dialog. InputWidget in Overwrite mode will focus switch to the next focusable widget when the text field becomes full.
2021-02-02InputWidget: Fixed cursor missing in an empty input widgetJaakko Keränen
2021-01-26InputWidget: Optional domain punycoding for UIJaakko Keränen
2021-01-12Fixed: Percent-encode spaces when copyingJaakko Keränen
IssueID #112
2020-12-16URL decoding preference affects input widgetsJaakko Keränen
2020-12-13macOS: Disable page navigation while editing textJaakko Keränen
The Cmd+Left/Right keys used both for page navigation (by default) and for moving the cursor inside text editor. The input widget keys should take precedence.
2020-12-12InputWidget: Double-click to select allJaakko Keränen
2020-12-12InputWidget: Allow variable-width fontsJaakko Keränen
2020-12-09InputWidget: Usability improvementsJaakko Keränen
Select all when search bar gets focus, so it's easy to enter a new search term. One press of Escape will both unfocus and dismiss the search bar. IssueID #65
2020-11-14Fixed copying the URL input field contentsJaakko Keränen
2020-11-11Fixed: Mishandled format stringJaakko Keränen
IssueID #31
2020-10-28InputWidget: Buffer contents of unfocused input fieldsJaakko Keränen
No need to redraw the text string on every frame.
2020-10-11Focus behavior of the URL entry fieldJaakko Keränen
Opening a new tab will now set input focus to the URL field. Switching tabs when the URL field is focused will select the full new URL. There was an issue previously where selecting a bookmark while the URL field was focused would cause unexpected behavior. The URL was first unfocused and that would trigger the document to fetch the URL that was in the input field.
2020-09-25Document side elements; hover outlineJaakko Keränen
2020-09-18InputWidget: Update cursor position when text changesJaakko Keränen
2020-09-17Download progress indicator for large downloadsJaakko Keränen
2020-09-10Linux: Tweaking shortcut keysJaakko Keränen
2020-09-09InputWidget: Clear selection when text is changedJaakko Keränen
2020-09-09InputWidget: Mark range out of boundsJaakko Keränen
Apparently after some sequence of edits/navigation, the URL input's selected range ended up out of bounds. Probably it isn't being cleared everywhere it should be.
2020-09-06LookupWidget: Keyboard focus and cursorJaakko Keränen
2020-09-04InputWidget: Cursor visible while moving/insertingJaakko Keränen