Bug 501411 - Make KeyCodes used for interaction configurable via bindings.
Summary: Make KeyCodes used for interaction configurable via bindings.
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF MVC (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 05:42 EDT by Matthias Wienand CLA
Modified: 2017-04-03 10:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Wienand CLA 2016-09-14 05:42:23 EDT
Currently, the IFXOnTypePolicy implementations define methods to determine if a KeyEvent is to be processed by the policy. Therefore, in order to change the KeyCode that is associated with the action, one needs to subclass the policy and overwrite the respective method. This should be simplified by specifying the KeyCodes for the policies via bindings.
Comment 1 Matthias Wienand CLA 2017-04-03 10:58:37 EDT
This could be achieved by performing assisted injection of the relevant handlers, so that a delegate can decide if a given input event should trigger a specific action. For example, the FocusAndSelectOnClickHandler could specify an IEventChecker as a constructor argument, which would be used to check if a given MouseEvent should enable appending to/removing from the selection, for example, by checking if a certain modifier is pressed.