Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Accesskeys for web interface

2009-05-21
2012-12-10
  • Manuel Monge
    Manuel Monge
    2009-05-21

    Hi great project, I just added accesskeys to the web interface (this makes easier to use it on a phone using 0-9, * and #):
    This diff is from anyremote2html:
    <diff>
    428c428
    <                     self.icons[0] = tokens[i]
    ---
    >                     self.icons[0] = tokens[i]               
    557,569d556
    <         def getAccessKey(self, index):
    <            
    <             if 1 <= index and index <=9:
    <                return index
    <             elif index == "10":
    <                return "*"
    <             elif index == "11":
    <                return "0"
    <             elif index == "12":
    <                return "#"
    <             else:
    <                return index
    <
    583c570
    <                     page = page + self.httpTable2 + maze + ".key\&quot; accesskey=\&quot;" + self.getAccessKey(maze) + self.httpTable3 + self.icons[i] + ".png" + self.httpTable4
    ---
    >                     page = page + self.httpTable2 + maze + ".key"+ self.httpTable3 + self.icons[i] + ".png" + self.httpTable4
    </diff>

    Thanks

     
    • Mike
      Mike
      2009-05-21

      thanks a lot.
      i'm going to add thbe patch to the next release

       
    • Lars
      Lars
      2009-06-29

      I could not get two different phones using 0-9, * and #
      I also applied your diff but nothing happens.

      Is it possible to use these keys with a WinMobile/Nokia/iPhone using the anyremote2html python script?