mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
Don't automatically redraw the edit box; this allows better inheritance.
This commit is contained in:
@@ -94,22 +94,3 @@ void draw_editbox ( struct edit_box *box ) {
|
||||
mvwprintw ( box->win, box->row, box->col, "%s", buf );
|
||||
wmove ( box->win, box->row, ( box->col + cursor_offset ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit text box widget
|
||||
*
|
||||
* @v box Editable text box widget
|
||||
* @v key Key pressed by user
|
||||
* @ret key Key returned to application, or zero
|
||||
*
|
||||
*/
|
||||
int edit_editbox ( struct edit_box *box, int key ) {
|
||||
|
||||
/* Update the string itself */
|
||||
key = edit_string ( &box->string, key );
|
||||
|
||||
/* Update the display */
|
||||
draw_editbox ( box );
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user