Item := ActiveListView.Items[i];
if TObject(Item.Data) is TKeySettingItem then begin
KeyItem := TKeySettingItem(Item.Data);
- if (GestureEdit.Text <> '')
+ if (GestureEdit.Text <> GUESTURE_NOTHING)
and (KeyItem.Gesture = GestureEdit.Text) then begin
MsgBox(Handle, ERR_MSG, ERR_TITLE, MB_OK or MB_ICONSTOP);
HotKey.SetFocus;