From 2aa4180077bc26d631b97601e55dad62bcf17880 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 6 Apr 2025 14:44:54 +0300 Subject: [PATCH] Avoid virtual keyboard when visiting new note page --- app/assets/javascripts/index/new_note.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/new_note.js b/app/assets/javascripts/index/new_note.js index 0090570a9..ff4a44126 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -130,7 +130,9 @@ OSM.NewNote = function (map) { content.find("textarea") .on("input", updateControls) - .trigger("focus"); + .attr("readonly", "readonly") // avoid virtual keyboard popping up on focus + .trigger("focus") + .removeAttr("readonly"); content.find("input[type=submit]").on("click", function (e) { const location = newNoteMarker.getLatLng().wrap(); -- 2.39.5