summaryrefslogtreecommitdiff
path: root/src/macos.m
AgeCommit message (Collapse)Author
2022-02-19Fixed several event handling issuesJaakko Keränen
Events are expected to have a valid windowID now, and the current window also has to be correct when dispatching or processing any events.
2022-02-10macOS: Handle regular mouse wheel scrollingJaakko Keränen
Since we're listening to scroll events directly, should handle the regular mouse, too.
2022-02-04macOS: Let other windows handle scroll eventsJaakko Keränen
For example, trying to scroll the Sparkle release notes was not possible because the main window would scroll instead.
2022-02-04macOS: Use Metal on >60 Hz displaysJaakko Keränen
The problem with the occasional stutters related to SDL_WaitEvent() are still there, but on a 120 Hz display it's even worse to be stuck on 60 Hz. Metal is required for 120 Hz.
2022-02-04Fixed issues with stripping ANSI escapesJaakko Keränen
2022-01-17macOS: Scroll glitch prevention (Monterey 12.1)Jaakko Keränen
2022-01-05Merge branch 'work/v1.10' into devJaakko Keränen
# Conflicts: # CMakeLists.txt # Depends-Android.cmake # res/about/version.gmi # res/lang/cs.bin # res/lang/eo.bin # res/lang/es.bin # res/lang/fi.bin # res/lang/gl.bin # res/lang/ia.bin # res/lang/ie.bin # res/lang/ru.bin # res/lang/sr.bin # res/lang/tok.bin # res/lang/tr.bin # res/lang/uk.bin # res/lang/zh_Hant.bin # src/app.c # src/main.c # src/ui/documentwidget.c # src/ui/labelwidget.c # src/ui/sidebarwidget.c # src/ui/util.c
2022-01-05Handling keys while navigating via home rowJaakko Keränen
When navigating via home row, ensure that other widgets will not trigger when keys are pressed. The document is given keyboard focus even though it is not flagged as focusable, to make sure it gets to handle all the keys first. On macOS, disable all native menu items that have a home row keyboard shortcut. Also on macOS, disable all native menus when changing bindings. IssueID #419
2021-12-17macOS: Incorrect horizontal scroll directionJaakko Keränen
2021-12-17macOS: Trackpad swipe navigationJaakko Keränen
Work in progress. Something breaks down when swiping forward twice...
2021-12-15macOS: Newlines in native menusJaakko Keränen
Other formatting besides line breaks is ignored for now, although attributed strings could be used here.
2021-11-07macOS: Use Sparkle for automatic updatesJaakko Keränen
2021-10-26macOS: Try to prevent SDL from being weird at launchJaakko Keränen
There appears to be some hacks in SDL regarding launch-time app activation. At least on my Macs, this leads to the forced unhiding of the dock in what appears to be mostly random behavior. Attempting to disable the hack via an SDL hint and activate the app manually.
2021-10-22CleanupJaakko Keränen
Very minor memory leaks.
2021-10-11macOS: Trying a different SDK version checkJaakko Keränen
2021-10-05macOS: Compiling with SDK older than 10.13Jaakko Keränen
IssueID #343
2021-10-03macOS: Compatibility with macOS 10.12 APIsJaakko Keränen
IssueID #343
2021-09-28macOS: Disable unused macOS 10.14 color codeJaakko Keränen
2021-09-26macOS: Position popup menus on selected itemJaakko Keränen
2021-09-26macOS: Experiment with system accent colorJaakko Keränen
This doesn't quite fit in the palette system currently, but it would be a nice addition later.
2021-09-26macOS: Context menu consumes modifier key releasesJaakko Keränen
2021-09-21LabelWidget: Tuned state colorsJaakko Keränen
2021-09-21Disabling items in native menusJaakko Keränen
Added the special prefix `///` to mark items disabled.
2021-09-21macOS: Improving native menu behaviorJaakko Keränen
Selected items and dynamic label updates.
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-08-15SDL 2.0.16 line drawing regression (OpenGL renderer)Jaakko Keränen
This is not specific to macOS, but seems to affect OpenGL rendering on all platforms.
2021-07-11CleanupJaakko Keränen
2021-07-06macOS: ^⌘Space shows character paletteJaakko Keränen
2021-06-09Merge branch 'dev' into work/typesetterJaakko Keränen
# Conflicts: # src/gmdocument.c # src/ui/documentwidget.c # src/ui/inputwidget.h
2021-05-28macOS: Attempted workaround for rendering issueJaakko Keränen
It appears that the SDL Metal renderer suffers from a glitch where display refresh is blocked for ~100 ms when resuming rendering after a period of sleep/waiting for events.
2021-05-11Cache GmDocuments in memoryJaakko Keränen
Navigation history keeps final GmDocuments in memory for quicker restore when navigating; no need to redo layout. Changed the color escape to Vertical Tab so Carriage Returns can be left in the source, reducing need to normalize spaces.
2021-03-29macOS: Fixed missing menu shortcutsJaakko Keränen
The built-in alternate bindings shouldn't affect the menu shortcuts.
2021-03-28macOS: Recreate menus after language changesJaakko Keränen
IssueID #192
2021-03-23Lang: Applied string IDs everywhereJaakko Keränen
More or less everywhere? IssueID #192
2021-03-22Lang: Improvements; macOS menu itemsJaakko Keränen
Use char pointer ranges for the array of IDs and strings to avoid allocations. Translate macOS menu items. IssueID #192
2021-03-15macOS: Decoding handled URLsJaakko Keränen
When an URL is provided via the system URL handling mechanism, decode any percent-encoded characters in it.
2021-01-26Keybindings for new tab, close tab, add bookmarkJaakko Keränen
Added new keybindings for opening and closing a tab. Also added a keybinding for adding a bookmark so ⌘D can be made available. On macOS, there is a default Window > Close menu item, so treat that as a "tabs.close" command to make it bindable. IssueID #121
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-09macOS: Update shortcuts in menu itemsJaakko Keränen
When keybindings are changed the menus will need updating.
2020-11-26macOS: Touch bar buttons in the wrong orderJaakko Keränen
2020-11-23Sidebar: Populate with feed entriesJaakko Keränen
2020-11-14macOS: Disable menu shortcuts while binding keysJaakko Keränen
2020-11-14macOS: Workaround for menu shortcut keysJaakko Keränen
Avoid double-triggering actions because SDL doesn't eat the keydown events — it ignores key equivalents.
2020-09-27macOS: 10.13 should use OpenGL rendererJaakko Keränen
There appears to be a problem with SDL's Metal renderer under 10.13 (segfault on window creation).
2020-09-27macOS: Robust system appearance checkJaakko Keränen
This API does not exist on 10.13, so prepare for an exception.
2020-09-16macOS: Changing sidebar modes via touch barJaakko Keränen
2020-09-16macOS: Added basic touch bar buttonsJaakko Keränen
2020-09-11macOS: Handling launch URLs and drop'n'dropJaakko Keränen
Improved drop and drop event handling: multiple dropped files/URLs open in new tabs. The application registers gemini: as a handled URL scheme.
2020-09-09macOS: Deployment taget is 10.14Jaakko Keränen