From 593d251b41f0a90517f354a83d9826a27a93bfa2 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Fri, 6 Mar 2020 18:41:29 +0200 Subject: [PATCH] Eat all keyboard events by default in vtkSwtAction gitlab #103 Change-Id: I709b93ffcf83f37e3253a224874ab10b710f913f --- .../org/simantics/g3d/vtk/swt/vtkSwtAction.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/vtkSwtAction.java b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/vtkSwtAction.java index 9d4332c1..058018d6 100644 --- a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/vtkSwtAction.java +++ b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/vtkSwtAction.java @@ -36,67 +36,56 @@ public class vtkSwtAction extends vtkAction implements vtkEventInterceptor{ @Override public boolean keyPressed(java.awt.event.KeyEvent e) { - // TODO Auto-generated method stub - return false; + return true; } @Override public boolean keyReleased(java.awt.event.KeyEvent e) { - // TODO Auto-generated method stub - return false; + return true; } @Override public boolean keyTyped(java.awt.event.KeyEvent e) { - // TODO Auto-generated method stub - return false; + return true; } @Override public boolean mouseDragged(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mouseMoved(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mouseClicked(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mouseEntered(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mouseExited(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mousePressed(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mouseReleased(java.awt.event.MouseEvent e) { - // TODO Auto-generated method stub return false; } @Override public boolean mouseWheelMoved(MouseWheelEvent e) { - // TODO Auto-generated method stub return false; } -- 2.47.1