Confirmed users
133
edits
Luke-chang (talk | contribs) (→Idea) |
Luke-chang (talk | contribs) No edit summary |
||
Line 21: | Line 21: | ||
# If keyboard app doesn't cancel the events, Gecko will then dispatch it to the event target as usual. [line (3)] | # If keyboard app doesn't cancel the events, Gecko will then dispatch it to the event target as usual. [line (3)] | ||
# If keyboard app cancels the events, it should be regarded the same as cancelled by the event target and follow the same rules defined in [[WebAPI/BrowserAPI/KeyboardEvent]]. | # If keyboard app cancels the events, it should be regarded the same as cancelled by the event target and follow the same rules defined in [[WebAPI/BrowserAPI/KeyboardEvent]]. | ||
== Flowchart == | |||
[[File:InputMethod API with hardware keyboard Flowchart.png]] | |||
== Proposed API == | == Proposed API == | ||
Line 26: | Line 30: | ||
# Internal API (mozInputMethod) | # Internal API (mozInputMethod) | ||
## Determine whether keyboard app is active or not | ## Determine whether keyboard app is active or not | ||
## Dispatch the key events to | ## Dispatch the key events to '''mozInputMethod.inputcontext''' | ||
# External API | # External API | ||
## Register/unregister a listener to handle the key events in keyboard app | ## Register/unregister a listener to handle the key events in keyboard app |