Lines Matching refs:inputConsumer
1 # @ohos.multimodalInput.inputConsumer (Input Consumer)
3 The **inputConsumer** module implements listening for combination key events.
14 import { inputConsumer } from '@kit.InputKit';
29 ## inputConsumer.getAllSystemHotkeys<sup>14+</sup>
46 inputConsumer.getAllSystemHotkeys().then((data: Array<inputConsumer.HotkeyOptions>) => {
51 ## inputConsumer.on('hotkeyOptions')<sup>14+</sup>
74 …eter error. The hotkey has been used by the system. You can call the [inputConsumer.getAllSystemHo…
82 let hotkeyOptions: inputConsumer.HotkeyOptions = {
87 let hotkeyCallback = (hotkeyOptions: inputConsumer.HotkeyOptions) => {
91 inputConsumer.on("hotkeyChange", hotkeyOptions, hotkeyCallback);
97 ## inputConsumer.off('hotkeyOptions')<sup>14+</sup>
127 let hotkeyCallback = (hotkeyOptions: inputConsumer.HotkeyOptions) => {
130 let hotkeyOption: inputConsumer.HotkeyOptions = {preKeys: [leftCtrlKey], finalKey: zKey, isRepeat: …
132 inputConsumer.on("hotkeyChange", hotkeyOption, hotkeyCallback);
133 inputConsumer.off("hotkeyChange", hotkeyOption, hotkeyCallback);
143 let hotkeyCallback = (hotkeyOptions: inputConsumer.HotkeyOptions) => {
146 let hotkeyOption: inputConsumer.HotkeyOptions = {preKeys: [leftCtrlKey], finalKey: zKey, isRepeat: …
148 inputConsumer.on("hotkeyChange", hotkeyOption, hotkeyCallback);
149 inputConsumer.off("hotkeyChange", hotkeyOption);