summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
AgeCommit message (Collapse)Author
2022-02-17Save text entered in the input promptJaakko Keränen
Use the same mechanism as in the Upload dialog to keep the text entered in the input prompt safe, in case the dialog is accidentally closed or the app crashes.
2022-02-09DocumentWidget: "Paste Preceding Line" should be undoableJaakko Keränen
2022-01-21InputWidget: Fixed hang if widget is very narrrowJaakko Keränen
2022-01-05Mobile: URL field padding on tabletsJaakko Keränen
2022-01-02Mobile: Tweaking URL input widget paddingJaakko Keränen
Portrait phone URL input field has some special padding rules. This should be done elsewhere (updateMetrics_Root?), but InputWidget does not check the Widget paddings currently.
2022-01-02Mobile: Taller portrait phone navbarJaakko Keränen
The navbar is an important tap target, so it should be the same height as most menu items and the toolbar.
2021-12-27Android: Keyboard height; other fixesJaakko Keränen
Send a notification from the Java side when the software keyboard is shown.
2021-12-27Reserved characters in URLsJaakko Keränen
Making URL encoding a little less convoluted. Now when sending out a request, the URL is fully encoded except for reserved characters. In the internal representation, non-ASCII characters are in decoded form (i.e., IRI). This means that if the user enters a URL in the input field manually, its non-ASCII characters will be percent encoded as well. However, in this case the user is expected to manually escape all reserved characters because the input field can't tell the difference between what is intended to be a reserved separator and what isn't. For example, a server might expect &-separated fields, and if the user enters such fields manually in the URL field, they shouldn't be converted to %26. When forming a query URL in the input dialog, user-entered text is fully percent-encoded because in that case the input is just a generic text string. IssueID #410
2021-12-16DocumentWidget: Paste preceding lineJaakko Keränen
Added a special actions menu in the input prompt to allow the user to paste the line preceding the latest clicked link from the originating document. One use case for this is user-editable lines.
2021-12-15Preferences: Option for cursor blinkingJaakko Keränen
2021-12-15InputWidget: Initial scroll position out of boundsJaakko Keränen
2021-12-15InputWidget: Dealing with very narrow widthJaakko Keränen
The input widget is not usable if the width is too narrow.
2021-12-15Mobile: Dismissing keyboard unfocuses InputWidgetJaakko Keränen
2021-12-14Mobile: Folders in bookmark editor; menus vs. input focusJaakko Keränen
2021-12-13Mobile: Fixed initial InputWidget sizingJaakko Keränen
2021-12-11CleanupJaakko Keränen
2021-12-10iOS: Extra padding at bottom of upload text editorJaakko Keränen
Long multiline editors should have a fair bit of overscroll at the bottom, as long as it doesn't affect the normal expanding editors.
2021-12-09iOS: Fixes and new edit menu for UploadWidgetJaakko Keränen
The sizing and behavior of the input field on the plain text upload page is much improved.
2021-12-09iOS: Fixed backups in InputWidgetJaakko Keränen
2021-12-08iOS: Fixed text field position was shiftingJaakko Keränen
The field was not tall enough, so it was scrolling slightly. Some of the changes in InputWidget may have been unnecessary.
2021-12-07InputWidget: Buffered content is limited by max heightJaakko Keränen
2021-12-05iOS: Register Iosevka for the monospace input widgetJaakko Keränen
2021-12-05Mobile: Scrolling to keep InputWidget visibleJaakko Keränen
2021-12-05InputWidget: Simplified version for system-provided inputJaakko Keränen
Instead of a tangle of `#if`s, it might be better to have a separate source file for the simple controller of the system-provided input control.
2021-12-05iOS: Custom editor font and adjusted positioningJaakko Keränen
2021-12-05iOS: Multiline text input using UITextViewJaakko Keränen
2021-12-04iOS: Right-aligned input fieldsJaakko Keränen
2021-12-04iOS: Position system input controls during animationJaakko Keränen
2021-12-04iOS: Setting up a system-provided text input controlJaakko Keränen
2021-12-02Mobile: Button group style; upload dialog tweaksJaakko Keränen
Use checkmarks for selections in button groups.
2021-11-27InputWidget: Mishandling of the A keyJaakko Keränen
2021-11-24InputWidget: Ctrl+A to select all (on PC)Jaakko Keränen
The Emacs-style Ctrl+A and Ctrl+E are only available on macOS now. This could still use a keybinding for customizing the behavior.
2021-10-23InputWidget: Per-pixel scrollingJaakko Keränen
2021-10-23CleanupJaakko Keränen
2021-10-13Text attributes that change inside a runJaakko Keränen
These changes concern the situation when the attributes of text (i.e., font, color) are changed via escape sequences. The concept of "base attributes" was added so that the low-level text renderer knows which font/color to set when a "reset" escape sequence is encountered. This depends on what kind of text is being renderer, e.g., preformatted or regular paragraphs. The base attributes were added as variables in Text because it was getting unwieldy to pass all the information via the draw/measure/WrapText functions. GmDocument now has a GmTheme struct that collects the font and color information into a single place.
2021-09-21InputWidget: Shift+Alt+Tab inserts a tab characterJaakko Keränen
2021-09-21macOS: Native context menusJaakko Keränen
Popup context menus now use NSMenu. There are still has a few glitches with the navbar identity button, but most menus are working. SDL required another little tweak to force it to update mouse button state after the synchronously handled context menu goes away. Otherwise SDL's internal mouse button state shows that the right mouse button is held down.
2021-09-20Experimenting with independent popup windowsJaakko Keränen
Toe dipping into multiple window support by allowing popup menu widgets to be displayed in independent windows. This is not a 100% replacement for native menus, but it gets pretty close.
2021-09-18Tracking hover widget; cleanupJaakko Keränen
The hover widget may get deleted during event processing, so Window keeps track of it for refreshing. TODO: Random crash when a destroyed menu is still in the onTop array (?).
2021-09-17Touch: Swipes interact at start positionJaakko Keränen
Allow the swiping finger to exit the widget without stopping the swipe.
2021-09-17InputWidget: CleanupJaakko Keränen
2021-09-17Fixed minor widget glitchesJaakko Keränen
2021-09-15Mobile: Minor improvementsJaakko Keränen
Fixed issues: scrollbar goes under toolbar, value input dialog grows too tall, Undo/Select All in the clip menu.
2021-09-14InputWidget: Touch scrolling, position calculationJaakko Keränen
2021-09-13Mobile: New selection logic for InputWidgetJaakko Keränen
Touch-based interaction requires a different kind of selection and copy/paste behavior. This isn't done yet; especially multi-line text still needs work.
2021-09-12CleanupJaakko Keränen
2021-09-12Mobile: Better Settings tap targets; fixed safe area drawingJaakko Keränen
2021-09-12Mobile: Draw optimizations; focus handlingJaakko Keränen
Widgets can now be marked for buffering their contents, which is useful if their contents change seldom but they are drawn often. For example, the navbar is always visible but doesn't change very often, and during animations menu contents are static but there is a moving animation so everything gets drawn 60 FPS. Focus handling was also improved so the lookup results can be scrolled while entering text, and one can tap outside an input field to unfocus it.
2021-09-10Mobile: Fixed minor UI issuesJaakko Keränen
Overflow-scrolling should be allowed over input fields, too. Fixed placement of the URL label in the link context menu.
2021-09-04iOS: Minor fixesJaakko Keränen
The SDL text input rectangle function applies some sort of offset that is inappropriate on iOS.