From 553c55b07a4aeb190f18806058f51ce2a10d9dd6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 13 Feb 2013 13:37:46 +0000 Subject: Move selection clearing into a function, and expose it in the header file. --- desktop/textarea.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'desktop/textarea.h') diff --git a/desktop/textarea.h b/desktop/textarea.h index d01cd12c6..3fedeee35 100644 --- a/desktop/textarea.h +++ b/desktop/textarea.h @@ -197,6 +197,14 @@ bool textarea_keypress(struct textarea *ta, uint32_t key); bool textarea_mouse_action(struct textarea *ta, browser_mouse_state mouse, int x, int y); +/** + * Clear any selection in the textarea. + * + * \param ta textarea widget + * \return true if there was a selection to clear, false otherwise + */ +bool textarea_clear_selection(struct textarea *ta); + /** * Gets the dimensions of a textarea * -- cgit v1.2.3