NetSurf
Enumerations | Functions
keypress.h File Reference

Interface to key press operations. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

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 ,
  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_DELETE_WORD_LEFT , NS_KEY_WORD_RIGHT ,
  NS_KEY_DELETE_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
}
 

Functions

bool browser_window_key_press (struct browser_window *bw, uint32_t key)
 Handle key presses in a browser window. More...
 

Detailed Description

Interface to key press operations.

Definition in file keypress.h.

Enumeration Type Documentation

◆ input_key

enum input_key
Enumerator
NS_KEY_SELECT_ALL 
NS_KEY_COPY_SELECTION 
NS_KEY_DELETE_LEFT 
NS_KEY_TAB 
NS_KEY_NL 
NS_KEY_SHIFT_TAB 
NS_KEY_CR 
NS_KEY_DELETE_LINE 
NS_KEY_PASTE 
NS_KEY_CUT_SELECTION 
NS_KEY_CLEAR_SELECTION 
NS_KEY_ESCAPE 
NS_KEY_LEFT 
NS_KEY_RIGHT 
NS_KEY_UP 
NS_KEY_DOWN 
NS_KEY_DELETE_RIGHT 
NS_KEY_LINE_START 
NS_KEY_LINE_END 
NS_KEY_TEXT_START 
NS_KEY_TEXT_END 
NS_KEY_WORD_LEFT 
NS_KEY_DELETE_WORD_LEFT 
NS_KEY_WORD_RIGHT 
NS_KEY_DELETE_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 

Definition at line 30 of file keypress.h.

Function Documentation

◆ browser_window_key_press()

bool browser_window_key_press ( struct browser_window bw,
uint32_t  key 
)

Handle key presses in a browser window.

Parameters
bwThe root browser window
keyThe UCS4 character codepoint
Returns
true if key handled, false otherwise

Definition at line 107 of file textinput.c.

References browser_window::bw, content_keypress(), browser_window::current_content, browser_window::focus, and browser_window::window.

Referenced by ami_drag_selection(), ami_gui_event(), context_popup(), copy_button_clicked_cb(), cut_button_clicked_cb(), delete_button_clicked_cb(), fb_browser_window_input(), HOOKF(), menu_copy(), menu_cut(), menu_paste(), nsbeos_scaffolding_dispatch_event(), nsbeos_window_keypress_event(), nsgtk_window_input_method_commit(), nsgtk_window_keypress_event(), nsws_drawable_char(), nsws_drawable_keydown(), nsws_drawable_unichar(), nsws_window_command(), nsws_window_drawable_event_callback(), on_content_keypress(), paste_button_clicked_cb(), ro_gui_window_keypress(), ro_gui_window_menu_select(), ro_gui_window_paste_cb(), and selectall_button_clicked_cb().

Here is the call graph for this function:
Here is the caller graph for this function: