PageRenderTime 12ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/library/platform/DOMOpera.py

http://pyjamas.googlecode.com/
Python | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | bfaa293bc26da35cff9f2cb7522ce102 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. def eventGetButton(evt):
  2. JS("""
  3. var button = evt.button;
  4. if(button == 0){
  5. return 1;
  6. } else {
  7. return button;
  8. }
  9. """)