locked
right click event

    Question

  • hey all,

    How to detect right click event?

    I found a way can do is 'content menu' event , but it fired after selection changed event raise on my listview.

    Is there a way that can do before selection changed raise?

    Thanks

    Monday, October 8, 2012 1:59 AM

Answers

  • hey Ted,

    Thanks for reply

    I need to know the selection changed event is fired by user or system.

    If user delete a selected file from desktop or what, the system will invoked selection changed.

    I guess I already found a way to resolve it , that 's 'MSPointsDown' event.

    This event will fired before selection changed.


    Friday, October 12, 2012 1:51 AM

All replies

  • There are more than enough javascript tutorials out there.  This board is for people who need Win8 specific help.

    https://www.google.com/search?q=javascript+detect+right+click&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

    Monday, October 8, 2012 7:07 AM
  • hey John,

    you're funny , but stop marking you reply , it's not the answer what I want.

    Be a man ok?

    Monday, October 8, 2012 9:13 AM
  • What are you trying to do here? In general, the context menu event is preferable to handling the right click, because there are several ways to invoke the context menu:

    • Right click
    • Shift-F10
    • Long press
    • Hardware context-menu button (this does not get reported to your app as a right-click)

    I've doubtless forgotten others. You might be able to cancel the selection change, if that would do what you needed.

    Thursday, October 11, 2012 5:23 PM
  • hey Ted,

    Thanks for reply

    I need to know the selection changed event is fired by user or system.

    If user delete a selected file from desktop or what, the system will invoked selection changed.

    I guess I already found a way to resolve it , that 's 'MSPointsDown' event.

    This event will fired before selection changed.


    Friday, October 12, 2012 1:51 AM