Aggiunta la possibilita' di premere i tasti ALT+ e ALT- per aggiungere
o togliere righe su di uno spreadsheet. git-svn-id: svn://10.65.10.50/trunk@3139 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									af28c001f4
								
							
						
					
					
						commit
						f25eefa0cf
					
				@ -1086,7 +1086,29 @@ bool TSpreadsheet::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
 | 
			
		||||
          if (xi_move_focus(get_interface()))
 | 
			
		||||
            dispatch_e_char(parent(), (k == K_ENTER || k == K_CTRL+K_ENTER) ? K_TAB : K_BTAB);
 | 
			
		||||
          break;  
 | 
			
		||||
        */  
 | 
			
		||||
        */
 | 
			
		||||
        case K_CTRL + '-':
 | 
			
		||||
          { 
 | 
			
		||||
            if (owner().mask().id2pos(DLG_DELREC) && notify(_cur_rec, K_DEL))
 | 
			
		||||
            {
 | 
			
		||||
              int rec = _cur_rec;
 | 
			
		||||
              destroy(rec);
 | 
			
		||||
              if (rec < items())
 | 
			
		||||
                str2mask(rec);
 | 
			
		||||
              notify(rec, K_CTRL+K_DEL);        // Notifica l'avvenuta cancellazione
 | 
			
		||||
              if (rec >= items())
 | 
			
		||||
                rec = items() - 1;
 | 
			
		||||
              if (rec >= 0)
 | 
			
		||||
                select(rec, FALSE);
 | 
			
		||||
            }
 | 
			
		||||
            refused = TRUE;
 | 
			
		||||
          }      
 | 
			
		||||
          break;     
 | 
			
		||||
        case K_CTRL + '+':                
 | 
			
		||||
          owner().mask().notify_focus_field(owner().dlg());
 | 
			
		||||
          insert(-1); 
 | 
			
		||||
          refused = TRUE;
 | 
			
		||||
          break;        
 | 
			
		||||
        case K_CTRL+K_PREV:                
 | 
			
		||||
          xi_scroll(_obj, XI_SCROLL_PGUP);
 | 
			
		||||
          break;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user