List of usage examples for javafx.scene.input KeyCode DIGIT5
KeyCode DIGIT5
To view the source code for javafx.scene.input KeyCode DIGIT5.
Click Source Link
From source file:org.pdfsam.ui.selection.multiple.SelectionTableTest.java
@Test @Ignore("Fails on Travis") public void editCommitOnFocusLost() throws Exception { populate();/*from www. j a v a 2 s .c o m*/ SelectionTable victim = find("#victim"); Optional<SelectionTableRowData> item = victim.getItems().stream() .filter(i -> "temp.pdf".equals(i.descriptor().getFileName())).findFirst(); assertTrue(item.isPresent()); item.get().pageSelection.set("2"); Thread.sleep(1000); click("2").type(KeyCode.ENTER, KeyCode.DIGIT5); click("temp4.pdf"); assertEquals(item.get().pageSelection.get(), "5"); }