[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [Bulk] [cdt-dev] How to detect shift key was pressed from editor ruler double click action?
|
I'm afraid the question "as is" doesn't make sense. Double click
contains of at least 4 mouse events (BtnDn, BtnUp,BtnDn, BtnUp), so this
is not an atomic event, keyboard stat can change between sub-actions.
The best you can do is to monitor keyboard state for each mouse
sub-event and use it for any appropriate purpose.
On 20/10/2009 11:28 AM, Norman Yee wrote:
I've defined an editor ruler double click action through my plugin.xml like so:
<extension
point="org.eclipse.ui.editorActions">
<editorContribution
targetID="org.eclipse.cdt.ui.editor.CEditor"
id="myplugin.editors.c.rulerActions">
<action
label="Not Used"
class="myplugin.ui.actions.RulerToggleBreakpointActionDelegate"
actionID="RulerDoubleClick"
id="myplugin.editors.c.ManageBreakpointRulerAction">
</action>
How do I detect if the shift key is currently pressed in the ruler double click action's createAction() method?
Regards,
Norman Yee
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev