RISC OS: Allow text selection in URL bar (RO5.28 onwards)

This commit is contained in:
John-Mark Bell 2022-09-04 09:28:54 +01:00 committed by Michael Drake
parent 7c89bc0d53
commit c6eea438ac

View File

@ -351,9 +351,12 @@ static bool ro_gui_url_bar_icon_update(struct url_bar *url_bar)
if (url_bar->display) {
icon.icon.flags |= (wimp_BUTTON_NEVER <<
wimp_ICON_BUTTON_TYPE_SHIFT);
} else {
} else if (!ns_wimp_has_text_selection()) {
icon.icon.flags |= (wimp_BUTTON_WRITE_CLICK_DRAG <<
wimp_ICON_BUTTON_TYPE_SHIFT);
} else {
icon.icon.flags |= (wimp_BUTTON_WRITABLE <<
wimp_ICON_BUTTON_TYPE_SHIFT);
}
error = xwimp_create_icon(&icon, &url_bar->text.icon);
if (error) {