Lines Matching refs:selection
698 // Make a caret selection inside the focused element if there isn't a range selection and there isn't already
699 // a caret selection inside. This is needed (at least) to remove caret from console when focus is moved.
700 // The selection change should not apply to text fields and text areas either.
705 var selection = window.getSelection();
706 if (!selection.isCollapsed)
723 selection.removeAllRanges();
724 selection.addRange(selectionRange);
905 // If the tree outline is processing a selection currently then we can assume the selection does not
936 // to show the content view for the current selection.
1122 // Restore the sidebar panel selection if this sidebar panel was the last one selected by the user.
1386 var selection = window.getSelection();
1388 // If there is no selection, see if the focused element or focused ContentView can handle the copy event.
1389 if (selection.isCollapsed && !WebInspector.isEventTargetAnEditableField(event)) {
1406 if (selection.isCollapsed)
1415 var selection = window.getSelection();
1417 // If there is no selection, pass the copy event on to the focused element or focused ContentView.
1418 if (selection.isCollapsed && !WebInspector.isEventTargetAnEditableField(event)) {
1435 if (selection.isCollapsed)
1438 // Remove word break characters from the selection before putting it on the pasteboard.
1439 var selectionString = selection.toString().removeWordBreakCharacters();