-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impl #125 - [Drag] Add support for key interactions in drag mode
Signed-off-by: Dirk Fauth <[email protected]>
- Loading branch information
Showing
4 changed files
with
189 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...table.core/src/org/eclipse/nebula/widgets/nattable/ui/action/IDragModeWithKeySupport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Dirk Fauth and others. | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Dirk Fauth <[email protected]> - initial API and implementation | ||
******************************************************************************/ | ||
package org.eclipse.nebula.widgets.nattable.ui.action; | ||
|
||
import org.eclipse.nebula.widgets.nattable.NatTable; | ||
import org.eclipse.swt.events.KeyEvent; | ||
|
||
/** | ||
* Extension of the {@link IDragMode} interface that adds support to react on | ||
* key interactions while the drag mode is active. | ||
* | ||
* @since 2.5 | ||
*/ | ||
public interface IDragModeWithKeySupport extends IDragMode { | ||
|
||
void keyPressed(NatTable natTable, KeyEvent event); | ||
|
||
void keyReleased(NatTable natTable, KeyEvent event); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters