mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Add marked_text support. Add input example page
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
local M = {}
|
||||
|
||||
M.ACTION_TEXT = hash("text")
|
||||
M.ACTION_TOUCH = hash("touch")
|
||||
M.ACTION_MARKED_TEXT = hash("marked_text")
|
||||
|
||||
M.ACTION_BACKSPACE = hash("key_backspace")
|
||||
M.ACTION_ENTER = hash("key_enter")
|
||||
M.ACTION_BACK = hash("back")
|
||||
M.ACTION_BACK = hash("key_back")
|
||||
M.ACTION_ESC = hash("key_esc")
|
||||
|
||||
M.ACTION_TOUCH = hash("touch")
|
||||
M.ACTION_SCROLL_UP = hash("scroll_up")
|
||||
M.ACTION_SCROLL_DOWN = hash("scroll_down")
|
||||
|
||||
@@ -24,14 +26,14 @@ M.ALL = "all"
|
||||
|
||||
|
||||
--- Component Interests
|
||||
M.ON_MESSAGE = hash("on_message")
|
||||
M.ON_UPDATE = hash("on_update")
|
||||
M.ON_INPUT_HIGH = hash("on_input_high")
|
||||
M.ON_INPUT = hash("on_input")
|
||||
M.ON_LANGUAGE_CHANGE = hash("on_language_change")
|
||||
M.ON_LAYOUT_CHANGE = hash("on_layout_change")
|
||||
M.ON_UPDATE = hash("on_update")
|
||||
M.ON_MESSAGE = hash("on_message")
|
||||
M.ON_INPUT_HIGH = hash("on_input_high")
|
||||
M.ON_FOCUS_LOST = hash("on_focus_lost")
|
||||
M.ON_FOCUS_GAINED = hash("on_focus_gained")
|
||||
M.ON_LAYOUT_CHANGE = hash("on_layout_change")
|
||||
M.ON_LANGUAGE_CHANGE = hash("on_language_change")
|
||||
|
||||
|
||||
M.PIVOTS = {
|
||||
@@ -48,10 +50,10 @@ M.PIVOTS = {
|
||||
|
||||
|
||||
M.SPECIFIC_UI_MESSAGES = {
|
||||
[M.ON_LANGUAGE_CHANGE] = "on_language_change",
|
||||
[M.ON_LAYOUT_CHANGE] = "on_layout_change",
|
||||
[M.ON_FOCUS_LOST] = "on_focus_lost",
|
||||
[M.ON_FOCUS_GAINED] = "on_focus_gained",
|
||||
[M.ON_LAYOUT_CHANGE] = "on_layout_change",
|
||||
[M.ON_LANGUAGE_CHANGE] = "on_language_change",
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user