The call to GetInputFocus finds the current window identifier for the window in focus.
调用GetInputFocus将为持有焦点的窗口查找当前窗口标识符。
2
The schema constraint count(key('ids', .)) = 1 checks the set of all identifiers to be sure that only one has the current value (in other words whether the identifier is unique).