mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
[project @ 2005-03-14 14:01:02 by rjw]
Stop text matching keyboard shortcuts in SELECT entities being right aligned. svn path=/import/netsurf/; revision=1536
This commit is contained in:
parent
501da1c487
commit
f6e1694894
@ -2249,6 +2249,7 @@ void gui_create_form_select_menu(struct browser_window *bw,
|
||||
struct form_control *control)
|
||||
{
|
||||
unsigned int i = 0, j;
|
||||
char *text_convert;
|
||||
struct form_option *option;
|
||||
wimp_pointer pointer;
|
||||
os_error *error;
|
||||
@ -2303,6 +2304,12 @@ void gui_create_form_select_menu(struct browser_window *bw,
|
||||
/* \todo can cnv_str_local_enc() fail? */
|
||||
gui_form_select_menu->entries[i].data.indirected_text.text =
|
||||
cnv_str_local_enc(option->text);
|
||||
/* convert spaces to hard spaces to stop things like 'Go Home' being treated
|
||||
as if 'Home' is a keyboard shortcut and right aligned in the menu. */
|
||||
text_convert = gui_form_select_menu->entries[i].data.indirected_text.text - 1;
|
||||
while (*++text_convert != '\0')
|
||||
if (*text_convert == 0x20)
|
||||
*text_convert = 0xa0;
|
||||
gui_form_select_menu->entries[i].data.indirected_text.
|
||||
validation = "\0";
|
||||
gui_form_select_menu->entries[i].data.indirected_text.size =
|
||||
|
Loading…
Reference in New Issue
Block a user