Sends a character to the currently active element with Ctrl
        pressed. This method takes care of pressing and releasing
        Ctrl.
435194
def ctrl_x(self, x, to=None):
        
        seq = [Keys.CONTROL, x, Keys.CONTROL]

        # This works around a bug in Selenium that happens in FF on
        # Windows, and in Chrome on Linux.
        #
        # The bug was reported here:
        #
        # https://code.google.com/p/selenium/issues/detail?id=7303
        #
        if (self.firefox and self.windows) or (self.linux and self.chrome):
            seq.append(Keys.PAUSE)

        if to is None:
            ActionChains(self.driver) \
                .send_keys(seq) \
                .perform()
        else:
            self.send_keys(to, seq)
1356626
function sendKeys(element, str) {
  return str.split('').reduce(function (promise, char) {
    return promise.then(function () {
      return element.sendKeys(char);
    });
  }, element.getAttribute('value'));
  // better to create a resolved promise here but ... don't know how with protractor;
  }
208688
function (selector, keystrokes, hash) {
    this.actionQueue.push(this.webdriverClient.element.bind(this.webdriverClient, selector));
    this.actionQueue.push(this.webdriverClient.sendKeys.bind(this.webdriverClient, keystrokes));
    this.actionQueue.push(this._sendKeysCb.bind(this, selector, keystrokes, hash));
    return this;
  }
20652
def _handleCtrlZ(self):
        
        if self._typingSms:
            self.serial.write(''.join(self.inputBuffer))
            self.serial.write(self.CTRL_Z_CHARACTER)
            self._typingSms = False
            self.inputBuffer = []
            self.cursorPos = 0
            sys.stdout.write('\n')
            self._refreshInputPrompt()
929100
@Override
	public void sendKeys(CharSequence keysToSend) throws WidgetException {
		try {
			  Actions builder = new Actions(getGUIDriver().getWrappedDriver());
		        synchronized (InteractiveElement.class) {
		            getGUIDriver().focus();
		            builder.sendKeys(getWebElement(), keysToSend).build().perform();
		        }
		} catch (Exception e) {
			throw new WidgetException("Error while sending keys", getByLocator(),
					e);
		}

	}
836265
def send_keys_to_element(self, element, *keys_to_send):
        
        self.click(element)
        self.send_keys(*keys_to_send)
        return self
289312
def key_pressed_event(self, event):
        
        if event.key() == self.keys.ESCAPE:
            self.close()

        self.example.key_event(event.key(), self.keys.ACTION_PRESS)
1341106
def forward_char(event):
    "  "
    buff = event.current_buffer
    buff.cursor_position += buff.document.get_cursor_right_position(count=event.arg)
235254
def send_keys(self, text: str = 'cerium') -> None:
        ''''''
        self.click()
        self._parent.send_keys(text)
151538
function( element ) {
            element = $.getElement( element );
            if ( typeof element.style.touchAction !== 'undefined' ) {
                element.style.touchAction = 'none';
            } else if ( typeof element.style.msTouchAction !== 'undefined' ) {
                element.style.msTouchAction = 'none';
            }
        }
49994
public boolean handleCharacter(int ch) {
		boolean result = true;
		this.onCharacter(ch);	// event handler
		
		if(this.rtfParser.isImport()) {
			if(buffer.length() > 254) {
				this.writeBuffer();
			}
			buffer.append((char)ch);
		}
		if(this.rtfParser.isConvert()) {
			buffer.append((char)ch);
		}
		return result;
	}
1097242
def keyPressEvent(self, event):
        
        if self._process.state() != self._process.Running:
            return
        tc = self.textCursor()
        sel_start = tc.selectionStart()
        sel_end = tc.selectionEnd()
        tc.setPosition(self._formatter._last_cursor_pos)
        self.setTextCursor(tc)
        if self.input_handler.key_press_event(event):
            tc.setPosition(sel_start)
            tc.setPosition(sel_end, tc.KeepAnchor)
            self.setTextCursor(tc)
            super(OutputWindow, self).keyPressEvent(event)
        self._formatter._last_cursor_pos = self.textCursor().position()
208622
function( key, character, shiftKey, altKey, ctrlKey, metaKey )
        {
            // submit form on enter-key
            if( interceptenter && key == 13 && ! shiftKey && ! altKey && ! ctrlKey && ! metaKey )
            {
                commands.sync();
                if( interceptenter() )
                {
                    commands.closePopup();
                    return false; // swallow enter
                }
            }
            // Exec hotkey (onkeydown because e.g. CTRL+B would oben the bookmarks)
            if( character && !shiftKey && !altKey && ctrlKey && !metaKey )
            {
                var hotkey = character.toLowerCase();
                if( hotkeys[hotkey] )
                {
                    hotkeys[hotkey]();
                    return false; // prevent default
                }
            }
            // Handle suggester
            if( suggester )
                return suggester_keydown( key, character, shiftKey, altKey, ctrlKey, metaKey );
        }
1350169
def process_input(self):
        
        try:
            character = self.window.getch()
        except Exception as e:
            character = -1
            if self.debug:
                self.addstr(self.height-1, self.width - len(e.message) + 1, e.message)

        # Check for any keys we've been told to exit on
        if character in self.exit_keys:
            self.stop()

        # Force redraw the screen on ^L
        if character == 12:
            self.window.clear()
            return

        # Send input to active panes (hidden panes can still receive input)
        if character != -1:
            [pane.process_input(character) for pane in self if pane.active ]

            # Print character codes to the bottom center if debugging.
            if self.debug:
                self.addstr(self.height-1, self.width/2, " "*4)
                self.addstr(self.height-1, self.width/2 - len(str(character)) / 2, str(character))
1204703
def _keyboard_access(self, element):
        
        # pylint: disable=no-self-use

        if not element.has_attribute('tabindex'):
            tag = element.get_tag_name()
            if (tag == 'A') and (not element.has_attribute('href')):
                element.set_attribute('tabindex', '0')
            elif (
                (tag != 'A')
                and (tag != 'INPUT')
                and (tag != 'BUTTON')
                and (tag != 'SELECT')
                and (tag != 'TEXTAREA')
            ):
                element.set_attribute('tabindex', '0')
74396
function press(event) {
      if (event.keyCode === 39) {
        Components.Run.make(Components.Direction.resolve('>'));
      }

      if (event.keyCode === 37) {
        Components.Run.make(Components.Direction.resolve('<'));
      }
    }
990214
public static <E> E send(Object o, String methodName, Character arg) {
    return send(o, methodName, (Object) arg);
  }