             banner.hidden = true
             self.view.insertSubview(banner, belowSubview: self.forwardingView)
             self.bannerView = banner
+            
+            self.setCapsIfNeeded()
         }
     }
     

            else if model.type == Key.KeyType.Character {
                self.setMode(0)
            }
        }
        
        if self.shiftState == ShiftState.Enabled {
            self.shiftState = ShiftState.Disabled
        }
    }
    

]
func metric(name: String) -> CGFloat { return CGFloat(metrics[name]!) }

// TODO: settings screen with
//  * autocaps
//  * caps lock
//  * . shortcut
//  * keyboard click

// TODO: live color changes! colors persist if keyboard is not unloaded between appearances, oh noes
class KeyboardViewController: UIInputViewController {
    
