mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-11 12:04:23 +03:00
RISC OS: Allow text selection in URL bar (RO5.28 onwards)
This commit is contained in:
parent
7c89bc0d53
commit
c6eea438ac
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user