summaryrefslogtreecommitdiff
path: root/desktop/textinput.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-07-01 14:27:04 +0100
committerVincent Sanders <vince@kyllikki.org>2016-07-01 14:27:04 +0100
commit8066d1c8b4ef4e8e19d22aa2d92950339271b351 (patch)
treea00969fcd198afdd65b647afa889d97ad535f084 /desktop/textinput.h
parent0758af6631674d2ca88ca127c4b42842821ab7d0 (diff)
downloadnetsurf-8066d1c8b4ef4e8e19d22aa2d92950339271b351.tar.gz
netsurf-8066d1c8b4ef4e8e19d22aa2d92950339271b351.tar.bz2
move key press enums and operations to their own header
Diffstat (limited to 'desktop/textinput.h')
-rw-r--r--desktop/textinput.h56
1 files changed, 3 insertions, 53 deletions
diff --git a/desktop/textinput.h b/desktop/textinput.h
index 0b3593104..5859ea8d6 100644
--- a/desktop/textinput.h
+++ b/desktop/textinput.h
@@ -19,8 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/** \file
- * Textual input handling (interface)
+/**
+ * \file
+ * Textual input handling interface
*/
#ifndef _NETSURF_DESKTOP_TEXTINPUT_H_
@@ -28,49 +29,6 @@
struct browser_window;
-enum input_key {
-
- NS_KEY_SELECT_ALL = 1,
- NS_KEY_COPY_SELECTION = 3,
-
- NS_KEY_DELETE_LEFT = 8,
- NS_KEY_TAB = 9,
-
- NS_KEY_NL = 10,
- NS_KEY_SHIFT_TAB = 11,
- NS_KEY_CR = 13,
-
- NS_KEY_DELETE_LINE = 21,
- NS_KEY_PASTE = 22,
- NS_KEY_CUT_SELECTION = 24,
- NS_KEY_CLEAR_SELECTION = 26,
-
- NS_KEY_ESCAPE = 27,
-
- /* cursor movement keys */
- NS_KEY_LEFT = 28,
- NS_KEY_RIGHT,
- NS_KEY_UP,
- NS_KEY_DOWN,
-
- NS_KEY_DELETE_RIGHT = 127,
-
- NS_KEY_LINE_START = 128,
- NS_KEY_LINE_END,
- NS_KEY_TEXT_START,
- NS_KEY_TEXT_END,
- NS_KEY_WORD_LEFT,
- NS_KEY_WORD_RIGHT,
- NS_KEY_PAGE_UP,
- NS_KEY_PAGE_DOWN,
- NS_KEY_DELETE_LINE_END,
- NS_KEY_DELETE_LINE_START,
-
- NS_KEY_UNDO,
- NS_KEY_REDO
-};
-
-
/**
* Position the caret and assign a callback for key presses.
*
@@ -91,13 +49,5 @@ void browser_window_place_caret(struct browser_window *bw, int x, int y,
*/
void browser_window_remove_caret(struct browser_window *bw, bool only_hide);
-/**
- * Handle key presses in a browser window.
- *
- * \param bw The root browser window
- * \param key The UCS4 character codepoint
- * \return true if key handled, false otherwise
- */
-bool browser_window_key_press(struct browser_window *bw, uint32_t key);
#endif