Shortcut key table

I'm testing this table with key shortcuts:
import java.util.HashSet;
import java.util.Set;
import javafx.application.Application;
import javafx.beans.property.ReadOnlyObjectWrapper;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.TextFieldTableCell;
import javafx.scene.input.KeyCharacterCombination;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.stage.Stage;
import javafx.util.Callback;
public class test extends Application {
    public static void main(String[] args) {
        launch(test .class);
    @Override
    public void start(Stage stage) throws Exception {
        final ObservableList<KeyCharacterCombination> items = FXCollections.observableArrayList();
        for (int i = 0; i < 110; i++) {
            items.add(null);
        TableView<KeyCharacterCombination> table = new TableView<>(items);
        table.setEditable(true);
        final TableColumn<KeyCharacterCombination, KeyCharacterCombination> column = new TableColumn<>();
        column.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<KeyCharacterCombination, KeyCharacterCombination>, ObservableValue<KeyCharacterCombination>>() {
            @Override
            public ObservableValue<KeyCharacterCombination> call(TableColumn.CellDataFeatures<KeyCharacterCombination, KeyCharacterCombination> cellDataFeatures) {
                return new ReadOnlyObjectWrapper<>(cellDataFeatures.getValue());
        column.setMinWidth(530);
        column.setCellFactory(new Callback<TableColumn<KeyCharacterCombination, KeyCharacterCombination>, TableCell<KeyCharacterCombination, KeyCharacterCombination>>() {
            @Override
            public TableCell<KeyCharacterCombination, KeyCharacterCombination> call(TableColumn<KeyCharacterCombination, KeyCharacterCombination> tableColumn) {
                final TableCell<KeyCharacterCombination, KeyCharacterCombination> cell = new TextFieldTableCell<KeyCharacterCombination, KeyCharacterCombination>() {
                    @Override
                    public void updateItem(KeyCharacterCombination keyCharacterCombination, boolean b) {
                        super.updateItem(keyCharacterCombination, b);
                        if (this.getItem() == null || b) {
                            setText(null);
                        } else {
                            StringBuilder sb = new StringBuilder();
                            if (keyCharacterCombination.getControl() == KeyCombination.ModifierValue.DOWN) {
                                sb.append("Ctrl + ");
                            if (keyCharacterCombination.getAlt() == KeyCombination.ModifierValue.DOWN) {
                                sb.append("Alt + ");
                            if (keyCharacterCombination.getShift()== KeyCombination.ModifierValue.DOWN) {
                                sb.append("Shift + ");
                            sb.append(keyCharacterCombination.getCharacter());
                            setText(sb.toString());
                cell.setOnKeyPressed(new EventHandler<KeyEvent>() {
                    Set<KeyCombination.Modifier> keys = new HashSet<>();
                    @Override
                    public void handle(KeyEvent keyEvent) {
                        if (keyEvent.getCode() == KeyCode.CONTROL) {
                            keys.add(KeyCombination.CONTROL_DOWN);
                        } else if (keyEvent.getCode() == KeyCode.ALT) {
                            keys.add(KeyCombination.ALT_DOWN);
                        } else if (keyEvent.getCode() == KeyCode.SHIFT) {
                            keys.add(KeyCombination.SHIFT_DOWN);
                        } else if (keyEvent.getCode().isLetterKey()) {
                            items.set(cell.getIndex(), new KeyCharacterCombination(keyEvent.getCode().getName(),
                                    keys.toArray(new KeyCombination.Modifier[keys.size()])));
                            keys.clear();
                return cell;
        table.getColumns().add(column);
        stage.setScene(new Scene(table));
        stage.show();
There is problem which I cannot solve. For example I can set key combination Ctrl+'D' or Shift+Ctrl+Alt+'G' but I cannot use key combination like Ctrl + 'X' or Ctrl + 'Z'. Can you help to improve this code?

Unfortunately, there are no shortcuts for this. Prior to the Oracle acquisition, Primavera had it as a goal for R7 to allow the operator to keep their hands on the keyboard most of the time, but this feature didn't make it into the final code. I feel your pain!

Similar Messages

  • Shortcut Key in JInternalFrame

    Hi,
    I have an application that has multiple JInternalFrames displayed within split panes. I am trying to set shortcut keys to cycle through the visible JInternalFrame. I have a Menu Item oCycleWindows, on which I called setAccelerator() with Ctrl+Shift+M. In th emenu handler for this item, I have defined a function that checks the current focussed internal frame, and accordingly picks the next one to get the focus.
    My problem is as follows: on clicking Ctrl+Shift+M, I am able to see that the next window has focus (the title bar color changes), but when I use the up/down keys to navigate within the newly focussed window, actually the navigation happens in the previous window....
    I have a tree view at the left, and two views at the right, and going from the tree view to any of the right views sometimes works correctly, sometimes doesn't (in fact i believe this happens every alternate time I shift to the non-tree view). Here, I have tables in the right views, and I try to select different rows using up/down keys once the right view has the focus, but the navigation occurs in the Tree view, with previous/next node getting selected instead!
    The funniest part is, the problem isn't there if the shortcut defined is 'F6', but for any other shortcut (F12, F11, Ctrl+M, Ctrl+Shift+M, Ctrl+K, CTrl+Shift+K etc.) this problem is seen.
    Does anyone have ANY idea why this happens? I tried to look up the bugs DB, but couldn't find anything specific to this...
    Sample Code:
    JMenuItem oCycWin = new JMenuItem("Cycle Windows");
    oCycWin.setMnemonic('C');
    oCycWin.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK | ActionEvent.SHIFT_MASK, true));
    //oCycWin.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0, true));
    oCycWin.addActionListener(new ActionListener()
       public void actionPerformed(ActionEvent e)
          /* oCurWin is a JInternalFrame object (extended class) that tracks the
             current focussed window
          if(oCurWin.ID == 1)
            oCurWin.ID = 2;
          else if(oCurWin.ID == 2)
            oCurWin.ID = 3;
          else
            oCurWin.ID = 1;
          oCurWin.setVisible(true);
          try
         oCurWin.setSelected(true);
          catch(java.beans.PropertyVetoException e)
         System.out.println("Can select oCurWin");
    });This code works fine for accelerator set as F6, and when we shift to the tree view. But sometimes on shifting focus to any of the right views, with accelerator not F6, although the right view appears to be focussed due to change in title bar color, the navigation continues in the tree view.
    Thanks...
    Shefali

    Hi,
    have you tried requesting the focus on your newly selected internal frame ?

  • Command C andV stop working just in Microsoft Word. what should i do?i can't use them as shortcut keys in word documents!

    Hi:
    I have a really annoying problem. command C andV stop working just in Microsoft Word. what should i do?i can't use them as shortcut keys in word documents! however they are working in other applications, the problem is just in word documents!

    I just had the same thing happen on my Macbook but was able to resolve it (at least for now!). Here's what I did:
    Go to Tools>Customize Keyboard
    You can then select 'edit' on the left side under categories. Then on the right side, you'll see lots of commands. Scroll down till you find the ones that aren't working. Ex. Editcopy, Editpaste.
    Select each one and check to see if there is a command short cut. Ex. for editcopy it should read: "Command C"
    If it does not (i.e. the problem), put the cursor in "Press new keyboard shortcut." Then press the command key along with the corresponding letter. Note you will not type the letters out but actually do the command. Then press "Assign." The shortcut command should then appear under 'Current Keys.' Go through and check all of the ones that aren't working for you.
    BTW, this is a nifty was to add some cool commands that you use often. Ex. insert row on table, etc.
    Quit Word and restart it. It should work. Hope that helps!

  • Is There a Shortcut Key for Change/Find ?

    Hello and thanks in advance,
    Using the InDesign CS-5  Find/Change feature, I am always using  the Change/Find button.
    *** Is there a way to create a shortcut key for this option, Change/Find ? ***
    Since I use it so often, it would be good if it could be one of the "F" keys:  F1, F2 or whatever.
    I looked under "Edit --> Keyboard Shortcuts" ... but I could not find the option Change/Find there.  Did I miss it ?
    Thanks again,
    Zorba

    Here is what I have now done, based on the suggestions above:
    http://i150.photobucket.com/albums/s90/robinwhitman/tech_support/id-edit-keyboard-shortcut s.jpg
    As you can see from the screen shot above,
    I have opened up the Keyboard Shortcuts Menu,
    Product Area:   Text and Tables
    In the Commands window I have selected:
    =====================
    Grep Replace wth Change to text and Find next
    ==============
    Now at this point, suppose I want to make the shortcut to activate this, the F4 key.
    I click to put the cursor into the cursor into the box that says, New Shortcut
    and then if I press "F4", it seems to be already taken by the Snow Leopard OS ... on my screen appears the Weather, calculator, calendar and clock.
    So I cannot assign the key and create the shortcut.
    Am I close to the goal here, or am I on the wrong track ?
    Thanks ... Zorba

  • Shortcut Key to PushButton

    Hello Friends,
    Can anyone tell me if it is possible to map a shortcut key to a pushbutton on a selection screen? For example, when user presses key F10, then the program will execute the code flow associated to a button on the screen.
    If yes, how?
    Thanks in advance.
    Kind regards.

    Hi
    On selection-screen u can assign only 5 your own buttons, the keys of keyboards assigned to them are:
    -  CTRL+F1
    -  CTRL+F2
    -  CTRL+F3
    -  CTRL+F4
    -  CTRL+F5
    U have to check the ok-code value in the event AT SELECTION-SCREEN, these butto can hav a code FC<XX>:
    TABLES SSCRFIELDS.
    PARAMETERS: P_BUKRS LIKE T001-BUKRS.
    SELECTION-SCREEN FUNCTION KEY 1.
    SELECTION-SCREEN FUNCTION KEY 2.
    SELECTION-SCREEN FUNCTION KEY 3.
    SELECTION-SCREEN FUNCTION KEY 4.
    SELECTION-SCREEN FUNCTION KEY 5.
    INITIALIZATION.
      MOVE: '@01@ 1' TO SSCRFIELDS-FUNCTXT_01,
            '@02@ 2' TO SSCRFIELDS-FUNCTXT_02,
            '@03@ 3' TO SSCRFIELDS-FUNCTXT_03,
            '@04@ 4' TO SSCRFIELDS-FUNCTXT_04,
            '@05@ 5' TO SSCRFIELDS-FUNCTXT_05.
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS-UCOMM.
        WHEN 'FC01'. MESSAGE I208(00) WITH 'You have pressed KEY CTRL+F1'.
        WHEN 'FC02'. MESSAGE I208(00) WITH 'You have pressed KEY CTRL+F2'.
        WHEN 'FC03'. MESSAGE I208(00) WITH 'You have pressed KEY CTRL+F3'.
        WHEN 'FC04'. MESSAGE I208(00) WITH 'You have pressed KEY CTRL+F4'.
        WHEN 'FC05'. MESSAGE I208(00) WITH 'You have pressed KEY CTRL+F5'.
      ENDCASE.
    Max

  • How to Open a Specific Folder in the Finder via Shortcut Key

    I'm sure this has been covered elsewhere, so sorry for not finding it...
    Is it possible to assign a shortcut key to open a specific folder with Automator or AppleScript? There are 4-5 commonly used folders buried 10-11 levels deep on a server and I'd love to have a shortcut key to open those particular folders in the Finder.
    Could you give me some assistance?
    Thanks!

    QuickKeys may work, or you can look on http://www.versiontracker.com or http://www.macupdate.com for other alternatives.
    Another option is to create aliases to those folders and store the aliases in a local folder which you can place on your Dock, the Finder window sidebar or toolbar.

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • What is the shortcut key to highlight words in adobe reader in macbook pro

    what is the shortcut key to highlight words in adobe reader in macbook pro?
    Shift + U is not working
    how can i change shortcut key?

    I don't believe there is a keyboard shortcut available for that feature. But I believe if you click-select the topmost chapter, and Shift-click the bottommost chapter, it should select them all.
    Other shortcuts for books can be set up in Edit > Keyboard Shortcuts in the Panel Menus product area. There are no default shortcuts in that area.

  • Satellite U400-12P - Multimedia Shortcut Keys illuminates 24-7

    Hey everyone,
    I am new to this forum and I hope someone will solve the problem I have.
    I own a Toshiba Satellite U400-12P (been a year now). Past few days I have noticed that the multimedia keys (PLAY/PAUSE/FFD/RWD/) isn't functiong (doesnt respond to my touch) + multimedia keys illuminates 24-7;that is even if the computer is switched off the shortcut keys are shining brightly. I have no clue why this is taking place.
    If someone has a solution to this. I shall greatly appreciate it.
    Thanx

    Hi every body,
    Lately, am trying to light the multimedia keys, which i used to do it by touching the mute key,
    but unfortunately the keys and even the word satellite and the light over the mouse are not lightning even though the ,mutimedia keys are working normally,
    would you please support me how to light these keys again?
    Thanks.

  • How to grab global shortcuts keys in a java application?

    Hi!
    Does anybody know if it's possible to get the focus to a Java application, when it is not selected, using a keyboard shortcut key?
    I've written a java application that provides shortcuts keys (like CTRL-M...) for accessing to some operations. For using those keys combinations my application has to be focused between the other opened applications on the operating system (Linux 7.3), as it should be in a normal behaviour... but, I would need that the operation associated to the shortcut key could be executed even if another application had the focus...
    Is it possible? How this could be done?
    Thanks in advance four your interest and your answers.

    Unfortunately shortcuts will work only if your app is focused.
    Denis

  • Is there a way to create a custom shortcut key to paste my email address?  I would like to be able to press a key combination that will paste whatever I set it to, i.e. my email address.

    Is there a way to create a custom shortcut key to paste my email address?  I would like to be able to press a key combination that will paste whatever I set it to, i.e. my email address.

    There are multiple ways to do similar things. One, built into the system, is to use text replacement. See:
    http://www.tuaw.com/2009/12/31/mac-101-making-text-replacement-work/
    There are other programs you can buy that can do the job in different ways, such as TextExpander. You could also just create a clipping file by dragging your e-mail address to somewhere like the desktop, and then you can simply drag that file to wherever you like to insert your e-mail address there.

  • Is there a way to open a second firefox instance using a shortcut key (i.e. Ctrl + Alt + 9), while a first instance is already running?

    This happens both in Windows XP and Windows 7. Firefox is the only application that does not allow this consistently (this works with MS-Word, Google Chrome, Notepad etc.).

    Yes, but {Ctrl + N} is useful only when you are already in Firefox. I meant quickly launching Firefox while using another application via a user-assigned shortcut key. For example, I am writing a text in MS-Word and I want to run a quick Wikipedia search; now, if Firefox is already running in the background, my shortcut for Firefox (e.g Ctrl + Alt + 9) won't do anything - it will only launch Firefox, if it is the first Firefox window to be opened. Thanks anyway though!

  • How can I have a shortcut key that is not a JMenuItem

    Hi,
    I'm trying to make "ctrl-f" a shortcut key in my program.
    I know I can do this as a JMenuItem by:
    menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_MASK));
    However, I would rather not have it in the menu.
    How would I do this without having it as a JMenuItem?
    Thanks,
    Daniel Lorimer

    As a user I hate designs like this. How am I supposed to know what all the shortcut keys are? Using a menu item is a form of self documentation
    Anyway, check out the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings.

  • If I would like to have all opened tabs in my browser stop loading a webpage is their a shortcut key that will allow this?

    If I open too many Bookmarked pages into tabs my browser will hang and then sometimes crash or close unexpectedly.
    If I bring up task manager or use the Alt + Tab I can navigate to the window and right-click and choose restore to allow me to see the window again. This needs to be done if I load more than 10 pages at once. Is there a way to choose to prevent loading of all opened tabs and then choose which tabs I'm currently working with to load the webpage? I would like to know how to use a shortcut key on my keyboard to select all tabs as ctrl + A does not work and then escape or another key tells to stop all pages from loading in each tab as with all the ads, gifs, videos, and internet spam keeps growing it is too much of a strain to have multiple webpages opened in tabs on the browser.
    I use Win XP SP2 and I am eagerly waiting a solution as it has been an issue with even previous versions of Firefox however IE could only have about 3 tabs opened and then would crash that is why I stick with Firefox as my browser of choice.

    Just saw your posting from yesterday - https://support.mozilla.com/en-US/questions/876195
    https://addons.mozilla.org/en-US/firefox/addon/checkplaces/ <br />
    '''Checks your bookmarks are valid and the pages still exist, checks for duplicates ...'''

  • What happened to the 'Shape Mode' shortcut keys on the Pen Tool?

    For the longest time I've used both the Shape and Pen Tools for drawing vectors in Photoshop, but with CS6 I noticed a lot of weird behaviours. The one that is really getting to me is the lack of 'Shape Mode' shortcut keys when using the Pen Tool. When on the 'Shape Tool', fo example Cirle or Rectange, you can press the Shift to change the Shape Mode to 'Add', Alt to change it to 'Subtract' or both together to get 'Intersect'. This functionality used to exist on the Pen Tool too, but in CS6 I can't seem to get it working.
    A collegue suggested to move over to Illustrator for all my Vector needs, and I know that this a good advice. However the lack of quick/integrated changing between 'Shape Modes' in either product (now) makes drawing things alot slower (for me).
    Am I missing something, or is this feature now ommited in Photoshop CS6. If it is does anyone know if its possible to script something to allow this kind of behviour in Photoshop or Illustrator?
    cheers,
    Jon

    The modifier keys "Alt|Opt", "Ctrl|Cmd" and "Shift" work differently depending on the tool being used but the individual keys seem to provide somewhat related functions.
    For example the "Shift" key tends to be a constraining key Rectangle tools are constrained to square ellipse tools to Circles. However if there is an Active selection when you hold down the skey when you drag out a new selection it does not reset the current selection instead the new selection is not constrained and is added to the current selection. Shift constrains Transform tool to current aspect ratio,  Shift constrains Line tools to vertical, horizontal or 45 degree angles. Pen tool like line tool shift constrains the angle.
    The "Alt|Opt" key changes the way tools operate. Transforms are from the center not from the side or corner being dragged.  Selection tools like the rectangle and ellipse will cause the intal drag out be from the center however it there is a Active selection dragging out a new selection will be subtracted from the current selection. This key changes the Pen tool from draw mode to anchor point adjusting.
    The "Shift" and "Alt|Opt" modifier keys can be used together to have an operation be both constrain and from the center.
    The "Ctrl|Cmd" key seems to change the way a tool works on a control anchor point.  The Pen Tool changes from Pen Draw mode to Direct Selection tool to facilitate moving the point.  Transform can be distorted a single corner point can be moved and distort the rectangle bounding box.
    These keys may have other functions I don't know about.  Photoshop has many features so many I don't know if any one person know and uses all of them. For the rest of us they seem to be Photoshop hidden secrets.

Maybe you are looking for

  • TS2972 cannot get home sharing to work appletv

    I've completed all troubleshooting steps on apple support but still does not work. Just purchased and connected fine no issues. Then 2 days later just stopped. No workie!

  • IPhone camera resolution

    How do you view, manage, and/ or modify resolution settings for the iPhone aa4s camera? I just discovered that a whole bunch of recent photos are at 640x480, and won't make decent prints. I just did a test photo however and it is 2448 x 3264. What a

  • Need Info On {QText} Tag

    Hello, I am trying to embed text of different sizes and shapes in my slideshows. I would like to center text (even though the exported text says that it is center justified, it isn't). I would also like to have a transparent background so my images s

  • SKU data missing in GR slip for AFS materials

    Dear experts, I have set the necessary IMG settings for GR slip and it did work for goods receipt for a PO. However, if I did goods receipt for AFS materials, there were no SKU level data in the output form. I checked release note 6.4 and there are s

  • Query to see what applications a user launched

    We have setup a RDS farm and are wanting to check to see which users are using it.  I have been able to confirm user logons through the event logs.  Another thing we would like to check, is to see what applications that the user launched.  Is there a