Disabling or Overriding Keyboard Shortcuts

Hi,

Is it possible to modify the set of keyboard shortcuts that DockingFrames uses? I have some existing UI that reacts to ctrl+e. If I hit ctrl+e once, the stack becomes externalized. If I hit ctrl+e again, the cell in my table becomes editable (as I’d hope it’d do in the first place). It’d be nice to be able to either turn the ctrl-e accelerator off completely, or at least re-map it.

Thanks,

-nate

You can remap it with:

control.putProperty( CControl.KEY_GOTO_EXTERNALIZED, newKeyStroke );```

I don't have the code at my workplace, if disabling is important for you I can search for a solution in the evening.

Perfect. I searched all over and couldn’t find an example of this. Thanks for the tip! This will be fine.

Hi,
I try to disable the keyboard shortcuts with the following codes:
1.control.putProperty( CControl.KEY_GOTO_NORMALIZED, null );
2.control.putProperty( CControl.KEY_GOTO_MAXIMIZED, null );

The first one works, but the second one still has the shortcut. Should I do something else to disable the maximized action’s shortcut?

Finally, thanks for providing such a great framework.

You might also need to unset “CControl.KEY_MAXIMIZE_CHANGE” (that is the shortcut to alternate between normalized and maximized mode).

Thanks, it works. :slight_smile: