Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Document sheet not responding to keyboard events

I think it's a first responder problem, but I'm not sure. I'm implementing an edit window for data in a table view. Very similar in concept to the UI for editing filter rules in Mail.app.

I have an editing window that I attach to my primary window with:

[NSApp beginSheet: criteriaEditPanel 
   modalForWindow: [self window] 
    modalDelegate: self 
   didEndSelector: @selector(criteriaEditDidEnd:returnCode:contextInfo:) 
      contextInfo: (void *)[criteriaList objectAtIndex: index]];

The panel displays properly, from the title bar of the main window. I can manipulate the pop-up controls on the panel with the mouse, but I can't edit the text fields and I can't tab between fields. Everything else works fine. Any ideas?

joe

like image 624
Flyingdiver Avatar asked Aug 19 '11 14:08

Flyingdiver


People also ask

How do I fix keyboard not responding in Excel?

Turn off Scroll Lock on your keyboard Look at your keyboard and see if you can find a Scroll Lock key (which might be abbreviated, such as SCRLK). If it has an illuminated status light, press the key to turn off the light. Then try Excel again. With luck, this solved your problem.

Why does my Excel sheet keep not responding?

Excel often freezes upon opening or it suddenly stops responding when you open a file. This issue is frequently caused by previously installed add-ins or macros and not by Excel itself. Antivirus software and Windows updates are other common causes of this error.

Why is my keyboard frozen in Excel?

The only way to resolve the issue is to use the mouse to click on a cell, at which time the entire keyboard become functional again. For example, if i use Alt+H+H to fill color of a cell, as soon as i select a color the keyboard will freeze.

Why Excel Cannot type from keyboard?

Disable scroll lock. Check the status bar in Excel to see whether scroll lock is enabled. If it is, disable it using the Scroll Lock key on your keyboard, or using the on-screen keyboard in Windows. If you have an extended keyboard on a Mac, you can press either F14, Shift + F14, or Command + F14 to toggle scroll lock.


1 Answers

Solved. Believe it or not, you have to have the Title Bar enabled for the panel, even though it's never visible when displayed as a Sheet. When enabled it in IB, keyboard input started working.

@spudwaffle - none of the objects had Refuse First Responder checked.

like image 150
Flyingdiver Avatar answered Sep 25 '22 18:09

Flyingdiver