keyboard: altgr css for single-glyph keys
[sheet.git] / keyboard.plp
index 4a49ebba91a52e64ddc6420a86bfce8d8193d727..7689af5851591a3e3fbaaf96ac2d7d4f47e51e7a 100644 (file)
@@ -16,6 +16,11 @@ my @keystyle = (
        $showkeys eq 'ghost' ? '<style> .no, .alias {opacity:.5} </style>' : (),
        '<script type="text/javascript" src="/keys.js?1.6" async></script>',
 );
+if ($include =~ /^altgr/ and open my $cssinc, '<', 'keyboard-altgr.css') {
+       local $/;
+       my $data = readline $cssinc;
+       push @keystyle, "<style>\n$data</style>";
+}
 
 Html({
        title => "\L$mode\E keyboard cheat sheet",