MCPcopy Create free account
hub / github.com/UI5/webcomponents / _onkeyup

Method _onkeyup

packages/main/src/TableSelection.ts:281–294  ·  view source on GitHub ↗
(e: KeyboardEvent, eventOrigin: HTMLElement)

Source from the content-addressed store, hash-verified

279 }
280
281 _onkeyup(e: KeyboardEvent, eventOrigin: HTMLElement) {
282 if (!this._table) {
283 return;
284 }
285
286 if (!eventOrigin.hasAttribute("ui5-table-row") || !this._rangeSelection || !e.shiftKey) {
287 // Stop range selection if a) Shift is relased or b) the event target is not a row
288 this._stopRangeSelection();
289 }
290
291 if (this._rangeSelection) {
292 this._rangeSelection.shiftPressed = e.shiftKey;
293 }
294 }
295
296 _onClickCapture(e: MouseEvent) {
297 if (!this._table || this.mode !== TableSelectionMode.Multiple) {

Callers

nothing calls this directly

Calls 2

_stopRangeSelectionMethod · 0.95
hasAttributeMethod · 0.80

Tested by

no test coverage detected