トップ 最新 追記 RSS feed

継続にっき

2004|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|12|
2006|01|03|05|06|08|09|10|12|
2007|01|02|03|05|07|12|
2008|10|
2009|01|05|12|
2010|04|05|11|
2011|01|09|12|
2012|02|03|05|09|12|
2013|02|03|
2014|05|09|
2015|12|

2007-05-19 (Sat)

))) mobileimapをアクセスキーに対応させる

クイックハックだけどなかなか便利に。

--- mobileimap.in.orig  2005-05-22 16:04:40.000000000 +0900
+++ mobileimap.in       2007-05-19 21:55:10.000000000 +0900
@@ -862,7 +862,7 @@
                           :seq => seq)
       begin
         generate_from_line(g, seq, nmessages) +
-          g.a(:href => url) {
+          g.a(:href => url, :accesskey =>  nmessages - nth(seq) + 1) {
           emphasize(g, compact_subject(get_subject(seq)).escapeHTML)
         } + g.hr
       rescue Exception => e
@@ -1436,6 +1436,7 @@
             " " + g.a(:href => "#bottom") { "↓" } +
             g.br + generate_seen_mode(g) + g.hr +
             generate_search_form(g) +
+            g.a(:name => 0, :href => "#0", :accesskey => 0) { "→" } + g.br +
             generate_list(g, nmessages, messages) +
             navi + " " +
             g.a(:href => generate_url(:command => "folders",
@@ -1725,6 +1726,7 @@
               g.a(:href => "#bottom") { "↓" } + " " +
               generate_seen_mode(g) + " " + g.hr +
               generate_fsearch_form(g) +
+              g.a(:name => 0, :href => "#0", :accesskey => 0) { "→" } + g.br +
               folders.map {|folder|
               line = g.font(:color => @seq_color) { sprintf("%03d", i) } +
                 if get_unseen_nmessages(folder) > 0 then
@@ -1733,7 +1735,8 @@
                   " "
                 end +
                 g.a(:href => generate_url(:folder => folder,
-                                          :unseen_only => @query.unseen_only)){
+                                          :unseen_only => @query.unseen_only),
+                    :accesskey => i){
                 simplify_folder_name(folder)
               } + g.br
               i += 1

2004|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|12|
2006|01|03|05|06|08|09|10|12|
2007|01|02|03|05|07|12|
2008|10|
2009|01|05|12|
2010|04|05|11|
2011|01|09|12|
2012|02|03|05|09|12|
2013|02|03|
2014|05|09|
2015|12|
トップ 最新 追記 RSS feed