使用以下代码时出现以下错误
The method onKeyDown(int, KeyEvent) is undefined for the type SherlockFragment
public boolean onKeyDown(int KeyCode, KeyEvent event) {
if ((KeyCode == KeyEvent.KEYCODE_BACK) && web.canGoBack()) {
web.goBack();
return true;
}
return super.onKeyDown(KeyCode, event);
}