Lines Matching defs:shift_state
1608 static u_char extended = 0, shift_state = 0;
1644 shift_state &= ~KB_NUM;
1647 if (shift_state & KB_NUM)
1649 shift_state |= KB_NUM;
1655 shift_state &= ~KB_CAPS;
1658 if (shift_state & KB_CAPS)
1660 shift_state |= KB_CAPS;
1666 shift_state &= ~KB_SCROLL;
1669 if (shift_state & KB_SCROLL)
1671 shift_state |= KB_SCROLL;
1691 if ((dt == 1) && (shift_state & (KB_CTL | KB_ALT)) == (KB_CTL | KB_ALT)) {
1708 shift_state &= ~KB_NUM;
1711 shift_state &= ~KB_CAPS;
1714 shift_state &= ~KB_SCROLL;
1717 shift_state &= ~KB_SHIFT;
1721 shift_state &= ~KB_ALTGR;
1723 shift_state &= ~KB_ALT;
1726 shift_state &= ~KB_CTL;
1738 if (shift_state & KB_NUM)
1740 shift_state |= KB_NUM;
1745 if (shift_state & KB_CAPS)
1747 shift_state |= KB_CAPS;
1752 if (shift_state & KB_SCROLL)
1754 shift_state |= KB_SCROLL;
1764 shift_state |= KB_SHIFT;
1768 shift_state |= KB_ALTGR;
1770 shift_state |= KB_ALT;
1773 shift_state |= KB_CTL;
1777 if (shift_state & KB_CTL)
1779 else if (shift_state & KB_ALTGR) {
1780 if (shift_state & KB_SHIFT)
1786 if (shift_state & KB_SHIFT)
1795 capchar[0] |= (shift_state & KB_ALT);
1803 if (shift_state & KB_SHIFT)
1805 else if (shift_state & KB_CTL)
1814 if (shift_state & (KB_SHIFT | KB_CTL) ||