Detect platform and label the correct hotkey shortcut

Yes, Platform Agent is overkill for just this but there isn't a one-size JS solution for updating both input placeholders and other HTML text and we're likely to need it later for other things like displaying platform-specific PWA prompts.
This commit is contained in:
Jason Zimdars
2025-05-27 12:14:24 -05:00
parent c2c3a8d8ab
commit d17134cb5c
9 changed files with 72 additions and 7 deletions
+4
View File
@@ -272,6 +272,9 @@ GEM
parser (3.3.8.0)
ast (~> 2.4.1)
racc
platform_agent (1.0.1)
activesupport (>= 5.2.0)
useragent (~> 0.16.3)
pp (0.6.2)
prettyprint
prettyprint (0.2.0)
@@ -456,6 +459,7 @@ DEPENDENCIES
importmap-rails
jbuilder
kamal
platform_agent
propshaft
puma (>= 5.0)
rails!