我试图在firetv应用程序中管理事件,问题是在事件火灾中同时使用Enter键和Click键,如何防止这种情况发生?
尝试使用inEvent.stopImmediatePropagation();但仍然没有帮助。
$(document).on('click keydown', '.currentSlide', function (inEvent) {
var keycode;
var logger = $('#error-logger');
if(window.event) {
k
当我的应用程序进入后台时,我的模式显示视图控制器就会取消这样的警告视图。
// called when view controller receives a UIApplicationDidEnterBackgroundNotification
- (void)applicationDidEnterBackground:(NSNotification *)notification
{
if (self.alertView) {
[self.alertView dismissWithClickedButtonIndex:0 animated:NO];
se