Subversion Repositories Kolibri OS

Rev

Rev 5674 | Rev 5706 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5674 Rev 5705
Line 143... Line 143...
143
}
143
}
Line 144... Line 144...
144
 
144
 
145
 
145
 
146
void main()
146
void main()
-
 
147
{   
-
 
148
	int id, mouse_clicked;
Line 147... Line 149...
147
{   
149
	word key_ascii, key_scancode;
148
	int id, key, mouse_clicked;
150
	dword status_key;
149
 
151
 
150
	SetEventMask(0x27);
152
	SetEventMask(0x27);
Line 191... Line 193...
191
			if (id==2) TabClick(WALLPAPERS);
193
			if (id==2) TabClick(WALLPAPERS);
192
			if (id==3) TabClick(SKINS);
194
			if (id==3) TabClick(SKINS);
193
			break;
195
			break;
Line 194... Line 196...
194
	  
196
	  
195
		case evKey:
197
		case evKey:
-
 
198
			GetFullKey();
-
 
199
			key_ascii = AH;
-
 
200
			$shr  eax,16
-
 
201
			key_scancode = AL;
196
			key = GetKey();
202
			status_key = GetStatusKey();
197
			if (list[SKINS].active) && (list[SKINS].ProcessKey(key)) Apply();
203
			if (list[SKINS].active) && (list[SKINS].ProcessKey(key_scancode)) Apply();
198
			if (list[WALLPAPERS].active) && (list[WALLPAPERS].ProcessKey(key)) Apply();
204
			if (list[WALLPAPERS].active) && (list[WALLPAPERS].ProcessKey(key_scancode)) Apply();
199
			IF (key==013) OpenFile();
205
			IF (key_scancode==SCAN_CODE_ENTER) OpenFile();
200
			if (key==9) if (list[SKINS].active) TabClick(WALLPAPERS); else TabClick(SKINS);
206
			if (key_scancode==SCAN_CODE_TAB) if (list[SKINS].active) TabClick(WALLPAPERS); else TabClick(SKINS);
201
			IF (key==182) //Del
207
			IF (key_scancode==SCAN_CODE_TAB) //Del
202
			{
208
			{
203
				DeleteFile(#cur_file_path);
209
				DeleteFile(#cur_file_path);
204
				Open_Dir();
210
				Open_Dir();
205
				Apply();
211
				Apply();