Lines Matching refs:status
29 …auto status = SetNameProperty(env, out, "action", in->GetKeyAction() - KeyEvent::KEY_ACTION_CANCEL… in CreateKeyEvent() local
30 CHKRR(status, "set action property", status); in CreateKeyEvent()
32 CHECK_RETURN(in->GetKeyItem(), "get key item", status); in CreateKeyEvent()
34 status = SetNameProperty(env, out, "key", keyItem); in CreateKeyEvent()
35 CHKRR(status, "set key property", status); in CreateKeyEvent()
37 status = SetNameProperty(env, out, "unicodeChar", in->GetKeyItem()->GetUnicode()); in CreateKeyEvent()
38 CHKRR(status, "set unicodeChar property", status); in CreateKeyEvent()
41 status = SetNameProperty(env, out, "keys", keyItems); in CreateKeyEvent()
42 CHKRR(status, "set keys property", status); in CreateKeyEvent()
44 status = WriteKeyStatusToJs(env, in->GetPressedKeys(), out); in CreateKeyEvent()
45 CHKRR(status, "set pressed key property", status); in CreateKeyEvent()
47 status = WriteFunctionKeyStatusToJs(env, in, out); in CreateKeyEvent()
48 CHKRR(status, "set function key property", status); in CreateKeyEvent()
56 auto status = napi_typeof(env, in, &valueType); in GetKeyEvent() local
57 CHECK_RETURN((status == napi_ok) && (valueType == napi_object), "object type invalid", status); in GetKeyEvent()
85 auto status = SetNameProperty(env, out, "code", in->GetKeyCode()); in CreateKeyItem() local
86 CHKRR(status, "set code property", status); in CreateKeyItem()
88 status = SetNameProperty(env, out, "pressedTime", in->GetDownTime()); in CreateKeyItem()
89 CHKRR(status, "set pressedTime property", status); in CreateKeyItem()
91 status = SetNameProperty(env, out, "deviceId", in->GetDeviceId()); in CreateKeyItem()
92 CHKRR(status, "set deviceId property", status); in CreateKeyItem()
112 auto status = SetNameProperty(env, out, "ctrlKey", isExists); in WriteKeyStatusToJs() local
113 CHKRR(status, "set ctrlKey property", status); in WriteKeyStatusToJs()
117 status = SetNameProperty(env, out, "altKey", isExists); in WriteKeyStatusToJs()
118 CHKRR(status, "set altKey property", status); in WriteKeyStatusToJs()
122 status = SetNameProperty(env, out, "shiftKey", isExists); in WriteKeyStatusToJs()
123 CHKRR(status, "set shiftKey property", status); in WriteKeyStatusToJs()
127 status = SetNameProperty(env, out, "logoKey", isExists); in WriteKeyStatusToJs()
128 CHKRR(status, "set logoKey property", status); in WriteKeyStatusToJs()
131 status = SetNameProperty(env, out, "fnKey", isExists); in WriteKeyStatusToJs()
132 CHKRR(status, "set fnKey property", status); in WriteKeyStatusToJs()
139 …auto status = SetNameProperty(env, out, "capsLock", in->GetFunctionKey(KeyEvent::CAPS_LOCK_FUNCTIO… in WriteFunctionKeyStatusToJs() local
140 CHKRR(status, "set capsLock property", status); in WriteFunctionKeyStatusToJs()
142 …status = SetNameProperty(env, out, "numLock", in->GetFunctionKey(KeyEvent::NUM_LOCK_FUNCTION_KEY)); in WriteFunctionKeyStatusToJs()
143 CHKRR(status, "set numLock property", status); in WriteFunctionKeyStatusToJs()
145 …status = SetNameProperty(env, out, "scrollLock", in->GetFunctionKey(KeyEvent::SCROLL_LOCK_FUNCTION… in WriteFunctionKeyStatusToJs()
146 CHKRR(status, "set scrollLock property", status); in WriteFunctionKeyStatusToJs()